Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move search-api test #118

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/frontend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,10 @@ test.describe("Frontend", { tag: ["@app-frontend", "@domain-www"] }, () => {
await page.getByRole("tab", { name: "Gogledd Iwerddon" }).click();
await expect(page.getByRole("heading", { name: "Yr ŵyl banc nesaf yng Ngogledd Iwerddon yw" })).toBeVisible();
});

test("Check the frontend can talk to Search API", { tag: ["@worksonmirror"] }, async ({ page }) => {
await page.goto("/government/get-involved");
await expect(page.getByRole("heading", { name: "Recently opened" })).toBeVisible();
await expect(page.locator("main > div").nth(3).locator(".gem-c-document-list__item-title")).toHaveCount(3);
});
});
6 changes: 0 additions & 6 deletions tests/government-frontend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ test.describe("Government Frontend", { tag: ["@app-government-frontend"] }, () =
await expect(page.getByText("How often do you want to get emails?")).toBeVisible();
});

test("Check the frontend can talk to Search API", { tag: ["@worksonmirror"] }, async ({ page }) => {
await page.goto("/government/get-involved");
await expect(page.getByRole("heading", { name: "Recently opened" })).toBeVisible();
await expect(page.locator(".get-involved > div").nth(3).locator(".gem-c-document-list__item-title")).toHaveCount(3);
});

test("Check a travel advice country page loads", { tag: ["@worksonmirror"] }, async ({ page }) => {
await page.goto("/foreign-travel-advice/luxembourg");
await expect(page.getByRole("heading", { name: "Luxembourg" })).toBeVisible();
Expand Down
Loading