Skip to content

Commit 3c5ef32

Browse files
committed
fix: replace force click with proper wait for visibility in e2e test
1 parent 2a88d0a commit 3c5ef32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/e2e.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ 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-
await page.locator('#trino-settings-enable-impersonation').click({ force: true });
24+
const impersonationCheckbox = page.locator('#trino-settings-enable-impersonation');
25+
await impersonationCheckbox.waitFor({ state: 'visible' });
26+
await impersonationCheckbox.click();
2527
await page.locator('div').filter({hasText: /^Access token$/}).locator('input[type="password"]').fill('aaa');
2628
await page.getByTestId('data-testid Data source settings page Save and Test button').click();
2729
}

0 commit comments

Comments
 (0)