File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +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- await page . locator ( '#trino-settings-enable-impersonation ' ) . click ( { force : true } ) ;
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 ( ) ;
2525 await page . locator ( 'div' ) . filter ( { hasText : / ^ A c c e s s t o k e n $ / } ) . 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
3838async 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 : / ^ 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 ( ) ;
4141 await page . locator ( 'div' ) . filter ( { hasText : / ^ A c c e s s t o k e n $ / } ) . locator ( 'input[type="password"]' ) . fill ( 'aaa' ) ;
4242 await page . locator ( 'div' ) . filter ( { hasText : / ^ C l i e n t T a g s $ / } ) . locator ( 'input' ) . fill ( clientTags ) ;
4343 await page . getByTestId ( 'data-testid Data source settings page Save and Test button' ) . click ( ) ;
You can’t perform that action at this time.
0 commit comments