File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ async function goToTrinoSettings(page: Page) {
2121
2222async 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 : / ^ I m p e r s o n a t e l o g g e d i n u s e r $ / } ) . getByLabel ( 'Toggle switch' ) . click ( ) ;
3125 await page . locator ( 'div' ) . filter ( { hasText : / ^ A c c e s s t o k e n $ / } ) . locator ( 'input[type="password"]' ) . fill ( 'aaa' ) ;
3226 await page . getByTestId ( 'data-testid Data source settings page Save and Test button' ) . click ( ) ;
3327}
You can’t perform that action at this time.
0 commit comments