File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ 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- 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 : / ^ A c c e s s t o k e n $ / } ) . locator ( 'input[type="password"]' ) . fill ( 'aaa' ) ;
2628 await page . getByTestId ( 'data-testid Data source settings page Save and Test button' ) . click ( ) ;
2729}
You can’t perform that action at this time.
0 commit comments