Skip to content

Commit 7d59c74

Browse files
committed
fix: tests
1 parent 12acdf8 commit 7d59c74

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const config: PlaywrightTestConfig = {
1919
: {
2020
command: 'npm run dev',
2121
port: 3000,
22+
reuseExistingServer: true,
2223
},
2324
use: {
2425
baseURL: baseUrl || 'http://localhost:3000/',

tests/suites/tenant/queryHistory/queryHistory.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test.describe('Query History', () => {
3434

3535
// Check if the query appears in the history
3636
const historyTable = page.locator('.ydb-queries-history table');
37-
await expect(historyTable.locator(`text="${testQuery}"`)).toBeVisible({
37+
await expect(historyTable.locator('.sql-highlighter', {hasText: testQuery})).toBeVisible({
3838
timeout: VISIBILITY_TIMEOUT,
3939
});
4040
});
@@ -85,6 +85,6 @@ test.describe('Query History', () => {
8585

8686
// Check if the query appears in the history
8787
const historyTable = page.locator('.ydb-queries-history table');
88-
await expect(historyTable.locator(`text="${testQuery}"`)).toBeVisible();
88+
await expect(historyTable.locator('.sql-highlighter', {hasText: testQuery})).toBeVisible();
8989
});
9090
});

0 commit comments

Comments
 (0)