diff --git a/tests/playwright/tests/db/timezone.spec.ts b/tests/playwright/tests/db/timezone.spec.ts index b1af3042a4..665b37d1f3 100644 --- a/tests/playwright/tests/db/timezone.spec.ts +++ b/tests/playwright/tests/db/timezone.spec.ts @@ -738,13 +738,12 @@ test.describe('Ext DB MySQL : DB Timezone configured as HKT', () => { let dashboard: DashboardPage; let context: any; - if (!isMysql(context)) { - return; - } - test.beforeEach(async ({ page }) => { context = await setup({ page, isEmptyProject: true }); dashboard = new DashboardPage(page, context.project); + if (!isMysql(context)) { + return; + } api = new Api({ baseURL: `http://localhost:8080/`,