Files
kandev/apps/web/e2e/tests/settings/mobile-github-integration-layout.spec.ts
T
2026-08-07 19:01:07 +01:00

23 lines
979 B
TypeScript

import { test, expect } from "../../fixtures/test-base";
test.describe("Mobile GitHub integration settings", () => {
test("keeps the enable toggle in the compact integration header", async ({ testPage }) => {
await testPage.goto("/settings/integrations/github");
const heading = testPage.locator("h3[data-testid='github-integration-heading']");
await expect(heading).toBeVisible();
await expect(
testPage.locator("section").filter({ has: heading }).locator("#github-enabled"),
).toBeVisible();
const accessCard = testPage.getByTestId("github-workspace-access-card");
await expect(accessCard).toBeVisible();
await expect(accessCard).toHaveAttribute("data-slot", "card");
await expect(testPage.locator("#github-enabled")).toHaveAttribute("aria-checked", "true");
expect(
await testPage.evaluate(
() => document.documentElement.scrollWidth <= document.documentElement.clientWidth,
),
).toBe(true);
});
});