Skip to content

Commit

Permalink
Update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Nov 13, 2024
1 parent c266c5f commit b6d5e43
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
7 changes: 7 additions & 0 deletions playwright/ci-test/tests/06-resources-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ test.describe("Resources pages", () => {
test("Installation guide", async ({ sidebar, installationGuidePage }) => {
await expect(sidebar.installationGuideLink).toBeVisible();
await sidebar.installationGuideLink.click();
await expect(sidebar.windowsLink).toBeVisible();
await expect(sidebar.linuxLink).toBeVisible();
await expect(sidebar.macOSLink).toBeVisible();
await expect(sidebar.freeBSDLink).toBeVisible();
await expect(sidebar.openBSDLink).toBeVisible();
await expect(sidebar.qgisTestingWarningLink).toBeVisible();
await expect(sidebar.installingFromSourceLink).toBeVisible();
await expect(
installationGuidePage.upcomingEvaluationLink,
).toBeVisible();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class InstallationGuidePage {
});
this.osgeo4WInstallerLink = this.page.getByRole("link", {
name: "OSGeo4W Installer",
exact: true,
});
this.aptInstallGnupgPre = this.page
.locator("pre")
Expand Down
37 changes: 36 additions & 1 deletion playwright/ci-test/tests/fixtures/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export class Sidebar {
public readonly supportLink: Locator;
public readonly membersLink: Locator;
public readonly pastMembersLink: Locator;
public readonly windowsLink: Locator;
public readonly linuxLink: Locator;
public readonly macOSLink: Locator;
public readonly freeBSDLink: Locator;
public readonly openBSDLink: Locator;
public readonly qgisTestingWarningLink: Locator;
public readonly installingFromSourceLink: Locator;

constructor(public readonly page: Page) {
this.sidebar = this.page.locator("#sidebar");
Expand Down Expand Up @@ -81,11 +88,39 @@ export class Sidebar {
this.membershipLink = this.sidebar.getByRole("link", {
name: "Membership",
});

this.installationGuideLink = this.sidebar.getByRole("link", {
name: "Installation guide",
});

this.windowsLink = this.sidebar.getByRole("link", {
name: "Windows",
});

this.linuxLink = this.sidebar.getByRole("link", {
name: "Linux",
exact: true,
});

this.macOSLink = this.sidebar.getByRole("link", {
name: "Mac OS X / macOS",
});

this.freeBSDLink = this.sidebar.getByRole("link", {
name: "FreeBSD",
});

this.openBSDLink = this.sidebar.getByRole("link", {
name: "OpenBSD",
});

this.qgisTestingWarningLink = this.sidebar.getByRole("link", {
name: "QGIS Testing Warning",
});

this.installingFromSourceLink = this.sidebar.getByRole("link", {
name: "Installing from Source",
});

this.archiveLink = this.sidebar.getByRole("link", {
name: "Archive",
exact: true,
Expand Down

0 comments on commit b6d5e43

Please sign in to comment.