File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ async function setupDataSourceWithClientTags(page: Page, clientTags: string) {
5757 await page . getByRole ( 'button' , { name : / s a v e .* t e s t / i } ) . click ( ) ;
5858}
5959
60+ test ( 'test client credentials flow with wrong credentials' , async ( { page } ) => {
61+ await login ( page ) ;
62+ await goToTrinoSettings ( page ) ;
63+ await setupDataSourceWithClientCredentials ( page , "some-wrong-client" ) ;
64+ await expect ( page . getByTestId ( 'data-testid Alert error' ) ) . toBeVisible ( ) ;
65+ await expect ( page . getByTestId ( 'data-testid Alert error' ) ) . toContainText ( 'Bad Request' ) ;
66+ } ) ;
67+
6068test ( 'test with access token' , async ( { page } ) => {
6169 await login ( page ) ;
6270 await goToTrinoSettings ( page ) ;
@@ -71,14 +79,6 @@ test('test client credentials flow', async ({ page }) => {
7179 await runQueryAndCheckResults ( page ) ;
7280} ) ;
7381
74- test ( 'test client credentials flow with wrong credentials' , async ( { page } ) => {
75- await login ( page ) ;
76- await goToTrinoSettings ( page ) ;
77- await setupDataSourceWithClientCredentials ( page , "some-wrong-client" ) ;
78- await expect ( page . getByTestId ( 'data-testid Alert error' ) ) . toBeVisible ( ) ;
79- await expect ( page . getByTestId ( 'data-testid Alert error' ) ) . toContainText ( 'Bad Request' ) ;
80- } ) ;
81-
8282test ( 'test client credentials flow with configured access token' , async ( { page } ) => {
8383 await login ( page ) ;
8484 await goToTrinoSettings ( page ) ;
You can’t perform that action at this time.
0 commit comments