Skip to content

Commit 2e03ecb

Browse files
committed
chore(e2e): remove keycloak catalog plugin tests
This change removes the e2e tests for the keycloak catalog provider plugin, and related code that is only used by this test. Assisted-By: Cursor Desktop
1 parent da07048 commit 2e03ecb

File tree

7 files changed

+2
-309
lines changed

7 files changed

+2
-309
lines changed

e2e-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"@microsoft/microsoft-graph-client": "3.0.7",
5656
"isomorphic-fetch": "3.0.0",
5757
"js-yaml": "4.1.1",
58-
"node-fetch": "2.7.0",
5958
"octokit": "4.1.4",
6059
"pg": "8.18.0",
6160
"prettier-plugin-sh": "0.18.0",

e2e-tests/playwright/e2e/plugins/keycloak/catalog-users.spec.ts

Lines changed: 0 additions & 142 deletions
This file was deleted.

e2e-tests/playwright/support/page-objects/catalog/catalog-users-obj.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
1-
import { Page, Locator } from "@playwright/test";
1+
import { Page } from "@playwright/test";
22

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

6-
static getListOfUsers(page: Page): Locator {
7-
// Get all user links in the table's body
8-
// Using rowgroup to target tbody, then getting links within cells
9-
// These links point to /catalog/{namespace}/user/{username}
10-
return page
11-
.getByRole("table")
12-
.first() // Scope to the first table (users table), not pagination table
13-
.getByRole("rowgroup")
14-
.nth(1) // Second rowgroup (data rows), 0-indexed: 0=header, 1=data
15-
.getByRole("cell")
16-
.getByRole("link");
17-
}
18-
19-
static getEmailLink(page: Page): Locator {
20-
return page.getByRole("link", { name: /@/ });
21-
}
22-
23-
static async visitUserPage(page: Page, username: string) {
24-
// Click on user link in the table by name
25-
await page
26-
.getByRole("table")
27-
.getByRole("link", { name: new RegExp(username, "i") })
28-
.first()
29-
.click();
30-
}
31-
32-
static getGroupLink(page: Page, groupName: string): Locator {
33-
return page.getByRole("link", { name: new RegExp(groupName, "i") });
34-
}
35-
366
static async visitBaseURL(page: Page) {
377
await page.goto(this.BASE_URL);
388
}

e2e-tests/playwright/utils/keycloak/group.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

e2e-tests/playwright/utils/keycloak/keycloak.ts

Lines changed: 0 additions & 117 deletions
This file was deleted.

e2e-tests/playwright/utils/keycloak/user.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

e2e-tests/yarn.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,6 @@ __metadata:
16791679
ioredis: "npm:5.9.3"
16801680
isomorphic-fetch: "npm:3.0.0"
16811681
js-yaml: "npm:4.1.1"
1682-
node-fetch: "npm:2.7.0"
16831682
octokit: "npm:4.1.4"
16841683
otplib: "npm:12.0.1"
16851684
pg: "npm:8.18.0"
@@ -2970,7 +2969,7 @@ __metadata:
29702969
languageName: node
29712970
linkType: hard
29722971

2973-
"node-fetch@npm:2.7.0, node-fetch@npm:^2.6.1":
2972+
"node-fetch@npm:^2.6.1":
29742973
version: 2.7.0
29752974
resolution: "node-fetch@npm:2.7.0"
29762975
dependencies:

0 commit comments

Comments
 (0)