Skip to content

Commit

Permalink
Clearing the waits
Browse files Browse the repository at this point in the history
  • Loading branch information
z-x committed Oct 9, 2023
1 parent 8ee1765 commit 01c1369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions gui/next/playwright/backgroundJobs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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?');
Expand Down
6 changes: 3 additions & 3 deletions gui/next/playwright/database.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 01c1369

Please sign in to comment.