diff --git a/gui/next/playwright/backgroundJobs.spec.js b/gui/next/playwright/backgroundJobs.spec.js index f772846c..acca884f 100644 --- a/gui/next/playwright/backgroundJobs.spec.js +++ b/gui/next/playwright/backgroundJobs.spec.js @@ -17,7 +17,6 @@ test('see home screen', async ({ page }) => { test('viewing scheduled background jobs', async ({ page }) => { await page.goto(triggerLogUrl + 'background_job'); await expect(page.getByText('background job scheduled')).toBeVisible(); - await page.waitForTimeout(4000); await page.goto(url); @@ -30,7 +29,6 @@ test('viewing scheduled background jobs', async ({ page }) => { test('viewing background job details', async ({ page }) => { await page.goto(triggerLogUrl + 'background_job'); await expect(page.getByText('background job scheduled')).toBeVisible(); - await page.waitForTimeout(4000); await page.goto(url); @@ -47,7 +45,6 @@ test('viewing background job details', async ({ page }) => { test('deleting scheduled background job', async ({ page }) => { await page.goto(triggerLogUrl + 'background_job_to_delete'); await expect(page.getByText('background job scheduled')).toBeVisible(); - await page.waitForTimeout(4000); page.on('dialog', async dialog => { expect(dialog.message()).toEqual('Are you sure you want to delete this background job?'); diff --git a/gui/next/playwright/database.spec.js b/gui/next/playwright/database.spec.js index 1197641f..fa7f43a0 100644 --- a/gui/next/playwright/database.spec.js +++ b/gui/next/playwright/database.spec.js @@ -26,9 +26,9 @@ test('ability to see table details', async ({ page }) => { await page.getByText('qa_table_1').click(); await expect(page).toHaveURL(/.*table/); - await expect(page.getByRole('cell', { name: 'id' })).toBeVisible(); - await expect(page.getByRole('cell', { name: 'qa_table_1_array' })).toBeVisible(); - await expect(page.getByRole('cell', { name: 'created at' })).toBeVisible(); + await expect(page.getByRole('cell', { name: 'id' }).and(page.locator('th'))).toBeVisible(); + await expect(page.getByRole('cell', { name: 'qa_table_1_array' }).and(page.locator('th'))).toBeVisible(); + await expect(page.getByRole('cell', { name: 'created at' }).and(page.locator('th'))).toBeVisible(); await expect(page.getByRole('cell', { name: 'Aliquam condimentum condimentum'})).toBeVisible(); await expect(page.getByRole('cell', { name: '["qa_table_1_array2_item1"'})).toBeVisible();