test(e2e/admin): Updates for 0.19.0 (#2665)
* test(e2e): Update "Inactive" locators * test(e2e): Update worker filter locators * test(e2e): Address flake Ensure that the test has reached the org page before trying to click the Auth Methods link (there is an auth method link on both the global page and the org page).
This commit is contained in:
1 parent
fed32aa57b
commit
5fa0d11aa9
5 files changed
+23
-12
No files matched your search
@@ -109,7 +109,7 @@ test('Set up LDAP auth method @ce @ent @docker', async ({
|
||||
).toBeVisible();
|
||||
|
||||
// Change state to active-public
|
||||
await page.getByTitle('Inactive').click();
|
||||
await page.getByRole('button', { name: 'Inactive' }).click();
|
||||
await page.getByText('Public').click();
|
||||
await expect(
|
||||
page.getByRole('alert').getByText('Success', { exact: true }),
|
||||
|
||||
@@ -71,7 +71,7 @@ test('Set up OIDC auth method @ce @ent @docker @aws', async ({
|
||||
);
|
||||
|
||||
// Change OIDC Auth Method state to active-public
|
||||
await page.getByTitle('Inactive').click();
|
||||
await page.getByRole('button', { name: 'Inactive' }).click();
|
||||
await page.getByText('Public').click();
|
||||
await expect(
|
||||
page.getByRole('alert').getByText('Success', { exact: true }),
|
||||
@@ -140,6 +140,11 @@ test('Set up OIDC auth method @ce @ent @docker @aws', async ({
|
||||
|
||||
// View the OIDC account and verify account attributes
|
||||
await page.getByRole('link', { name: orgName }).click();
|
||||
await expect(
|
||||
page
|
||||
.getByRole('navigation', { name: 'breadcrumbs' })
|
||||
.getByText(orgName),
|
||||
).toBeVisible();
|
||||
await page
|
||||
.getByRole('navigation', { name: 'IAM' })
|
||||
.getByRole('link', { name: 'Auth Methods' })
|
||||
|
||||
@@ -211,10 +211,10 @@ test('Verify TCP target is updated @ce @aws @docker', async ({
|
||||
).toBeVisible();
|
||||
await expect(page.getByText('"dev" in "/tags/type"')).toBeVisible();
|
||||
|
||||
await page.getByRole('textbox').click({ force: true });
|
||||
await page.locator('textarea').click({ force: true });
|
||||
await page.keyboard.press('Meta+A');
|
||||
await page.keyboard.press('Backspace');
|
||||
await page.getByRole('textbox').fill('"prod" in "/tags/type"');
|
||||
await page.locator('textarea').fill('"prod" in "/tags/type"');
|
||||
await page.getByRole('button', { name: 'Save' }).click();
|
||||
const basePage = new BasePage(page);
|
||||
await basePage.dismissSuccessAlert();
|
||||
|
||||
Reference in new issue
Block a user