Skip to content

Commit 637ef48

Browse files
committed
Minor change to remove a typo in test case
1 parent 4711fa9 commit 637ef48

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/e2e.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ async function goToTrinoSettings(page: Page) {
2121

2222
async function setupDataSourceWithAccessToken(page: Page) {
2323
await page.getByTestId('data-testid Datasource HTTP settings url').fill('http://trino:8080');
24-
const impersonationCheckbox = page.locator('#trino-settings-enable-impersonation');
25-
// Wait until the checkbox is visible, scroll it into view and ensure it's enabled
26-
await impersonationCheckbox.waitFor({ state: 'visible' });
27-
await impersonationCheckbox.scrollIntoViewIfNeeded();
28-
await expect(impersonationCheckbox).toBeEnabled({ timeout: 5_000 });
29-
// Give the click a bit more timeout to avoid flaky retry loops in CI
30-
await impersonationCheckbox.click({ timeout: 10_000 });
24+
await page.locator('div').filter({hasText: /^Impersonate logged in user$/}).getByLabel('Toggle switch').click();
3125
await page.locator('div').filter({hasText: /^Access token$/}).locator('input[type="password"]').fill('aaa');
3226
await page.getByTestId('data-testid Data source settings page Save and Test button').click();
3327
}

0 commit comments

Comments
 (0)