Skip to content

Commit c6d7d51

Browse files
committed
Remove force check in impersonation section
1 parent e759cce commit c6d7d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +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-
await page.locator('#trino-settings-enable-impersonation').click({ force: true });
24+
await page.locator('div').filter({hasText: /^Impersonate logged in user$/}).getByLabel('Toggle switch').click();
2525
await page.locator('div').filter({hasText: /^Access token$/}).locator('input[type="password"]').fill('aaa');
2626
await page.getByTestId('data-testid Data source settings page Save and Test button').click();
2727
}
@@ -37,7 +37,7 @@ async function setupDataSourceWithClientCredentials(page: Page, clientId: string
3737

3838
async function setupDataSourceWithClientTags(page: Page, clientTags: string) {
3939
await page.getByTestId('data-testid Datasource HTTP settings url').fill('http://trino:8080');
40-
await page.locator('#trino-settings-enable-impersonation').click({ force: true });
40+
await page.locator('div').filter({hasText: /^Impersonate logged in user$/}).getByLabel('Toggle switch').click();
4141
await page.locator('div').filter({hasText: /^Access token$/}).locator('input[type="password"]').fill('aaa');
4242
await page.locator('div').filter({hasText: /^Client Tags$/}).locator('input').fill(clientTags);
4343
await page.getByTestId('data-testid Data source settings page Save and Test button').click();

0 commit comments

Comments
 (0)