Skip to content

Commit 8520bcb

Browse files
committed
Fix e2e test
1 parent 57078ff commit 8520bcb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/e2e.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ async function setupDataSourceWithClientTags(page: Page, clientTags: string) {
5757
await page.getByRole('button', { name: /save.*test/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+
6068
test('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-
8282
test('test client credentials flow with configured access token', async ({ page }) => {
8383
await login(page);
8484
await goToTrinoSettings(page);

0 commit comments

Comments
 (0)