Skip to content
Open
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
1 change: 0 additions & 1 deletion e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"@microsoft/microsoft-graph-client": "3.0.7",
"isomorphic-fetch": "3.0.0",
"js-yaml": "4.1.1",
"node-fetch": "2.7.0",
"octokit": "4.1.4",
"pg": "8.18.0",
"prettier-plugin-sh": "0.18.0",
Expand Down
142 changes: 0 additions & 142 deletions e2e-tests/playwright/e2e/plugins/keycloak/catalog-users.spec.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,38 +1,8 @@
import { Page, Locator } from "@playwright/test";
import { Page } from "@playwright/test";

export class CatalogUsersPO {
static BASE_URL = "/catalog?filters%5Bkind%5D=user&filters%5Buser";

static getListOfUsers(page: Page): Locator {
// Get all user links in the table's body
// Using rowgroup to target tbody, then getting links within cells
// These links point to /catalog/{namespace}/user/{username}
return page
.getByRole("table")
.first() // Scope to the first table (users table), not pagination table
.getByRole("rowgroup")
.nth(1) // Second rowgroup (data rows), 0-indexed: 0=header, 1=data
.getByRole("cell")
.getByRole("link");
}

static getEmailLink(page: Page): Locator {
return page.getByRole("link", { name: /@/ });
}

static async visitUserPage(page: Page, username: string) {
// Click on user link in the table by name
await page
.getByRole("table")
.getByRole("link", { name: new RegExp(username, "i") })
.first()
.click();
}

static getGroupLink(page: Page, groupName: string): Locator {
return page.getByRole("link", { name: new RegExp(groupName, "i") });
}

static async visitBaseURL(page: Page) {
await page.goto(this.BASE_URL);
}
Expand Down
7 changes: 0 additions & 7 deletions e2e-tests/playwright/utils/keycloak/group.ts

This file was deleted.

117 changes: 0 additions & 117 deletions e2e-tests/playwright/utils/keycloak/keycloak.ts

This file was deleted.

9 changes: 0 additions & 9 deletions e2e-tests/playwright/utils/keycloak/user.ts

This file was deleted.

3 changes: 1 addition & 2 deletions e2e-tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,6 @@ __metadata:
ioredis: "npm:5.9.3"
isomorphic-fetch: "npm:3.0.0"
js-yaml: "npm:4.1.1"
node-fetch: "npm:2.7.0"
octokit: "npm:4.1.4"
otplib: "npm:12.0.1"
pg: "npm:8.18.0"
Expand Down Expand Up @@ -2970,7 +2969,7 @@ __metadata:
languageName: node
linkType: hard

"node-fetch@npm:2.7.0, node-fetch@npm:^2.6.1":
"node-fetch@npm:^2.6.1":
version: 2.7.0
resolution: "node-fetch@npm:2.7.0"
dependencies:
Expand Down
Loading