-
Notifications
You must be signed in to change notification settings - Fork 876
feat: enable editing of IDP sync configuration for groups and roles in the UI #16098
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
Changes from 1 commit
96b0c09
a88b72f
cb00c73
4b15a2a
0befeca
f8349de
7124c11
30c8a9c
a7c954b
c09a3f3
8714f5e
b558f35
aa0e53c
7635856
91ca380
328ce2f
52d563c
b1d7649
b3812f1
d19a0dc
43159ff
528f2d8
d283fa1
ad2fc45
c99e009
31cd599
2354883
3c63c8c
623a50e
5779c8d
395fdc8
79ce400
854684a
50c12db
16665e2
3dbcee3
9b709ae
bee5783
d3b64b2
0362c16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
jaaydenh marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,21 @@ test.beforeEach(async ({ page }) => { | |
}); | ||
|
||
test.describe("IdpGroupSyncPage", () => { | ||
|
||
test("show empty table when no group mappings are present", async ({ page }) => { | ||
test("show empty table when no group mappings are present", async ({ | ||
page, | ||
}) => { | ||
requiresLicense(); | ||
const org = await createOrganizationWithName(randomName()); | ||
await page.goto(`/organizations/${org.name}/idp-sync?tab=groups`, { | ||
waitUntil: "domcontentloaded", | ||
}); | ||
|
||
await expect(page.getByRole("row", { name: "idp-group-1" })).not.toBeVisible(); | ||
await expect(page.getByRole("heading", { name: "No group mappings" })).toBeVisible(); | ||
await expect( | ||
page.getByRole("row", { name: "idp-group-1" }), | ||
).not.toBeVisible(); | ||
await expect( | ||
page.getByRole("heading", { name: "No group mappings" }), | ||
).toBeVisible(); | ||
|
||
await deleteOrganization(org.name); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm asking because I haven't had much chance to touch Playwright yet, and don't know what it does for test setup: is I'm mainly wondering why the call is present for the first two tests as (what looks like) a cleanup step, but some of the later, non-deletion tests in this file don't have it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm also not sure if Playwright supports any "true concurrency", rather than doing everything through the event loop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I originally added this to fix some test failures across tests that were creating organizations. From the documentation and my testing, it does appear tests are run in parallel. The intention was to add this cleanup step anytime an org is created to avoid test flakes in the future. |
||
}); | ||
|
@@ -67,9 +72,7 @@ test.describe("IdpGroupSyncPage", () => { | |
|
||
const row = page.getByTestId("group-idp-group-1"); | ||
await expect(row.getByRole("cell", { name: "idp-group-1" })).toBeVisible(); | ||
await row | ||
.getByRole("button", { name: /delete/i }) | ||
.click(); | ||
await row.getByRole("button", { name: /delete/i }).click(); | ||
await expect( | ||
row.getByRole("cell", { name: "idp-group-1" }), | ||
).not.toBeVisible(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a test ID selector here? I'm not sure why the row selectors wouldn't work here, but would still work for other test cases