Skip to content

Commit

Permalink
Merge pull request #4384 from aleksandrychev/MEN-6859
Browse files Browse the repository at this point in the history
test: fixed allows role creation for static groups e2e test
  • Loading branch information
aleksandrychev committed May 1, 2024
2 parents 9c7171a + 05f82a8 commit 5995645
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e_tests/integration/08-rbac.spec.ts
Expand Up @@ -48,10 +48,14 @@ test.describe('RBAC functionality', () => {
// we need to check the entire page here, since the selection list is rendered in a portal, so likely outside
// of the dialog tree
await page.locator('li[role="option"]:has-text("testgroup")').click();
await dialog.locator('text=Select​').click({ force: true });
await dialog.locator('text=Select​').nth(1).click({ force: true });
await page.locator('text=Configure').click();
await page.press('body', 'Escape');
await dialog.locator('input:right-of(:text("Releases")) >> ..').first().click();

await page.waitForTimeout(timeouts.oneSecond);
await dialog.locator('text=Search release tags​').click({ force: true });
await page.locator('li[role="option"]:has-text("All releases")').click({ force: true });
await dialog.locator('text=Select​').first().click({ force: true });
await page.locator('li[role="option"]:has-text("Read")').click();
await page.press('body', 'Escape');
await dialog.locator('text=Submit').scrollIntoViewIfNeeded();
Expand Down

0 comments on commit 5995645

Please sign in to comment.