Skip to content

Commit

Permalink
Add wait for spinner in table image ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesholl committed Jan 20, 2025
1 parent d652cdb commit 805a6f5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';
import path from 'path';

import { config } from '../../../config';
Expand All @@ -19,6 +19,8 @@ test('Ensure media is uploaded on create', async ({ page }) => {

test('Ensure media is uploaded on update', async ({ page }) => {
await page.goto(`${config.adminUiUrl}/Submission`);
await page.getByTestId('spinner').waitFor({ state: 'hidden' });

await page.getByRole('cell').getByRole('img').last().click();
await page.waitForTimeout(1000);

Expand All @@ -33,6 +35,7 @@ test('Ensure media is uploaded on update', async ({ page }) => {

test('Ensure media is deleted', async ({ page }) => {
await page.goto(`${config.adminUiUrl}/Submission`);
await page.getByTestId('spinner').waitFor({ state: 'hidden' });

await page.getByRole('cell').getByRole('img').last().click();
await page.waitForTimeout(1000);
Expand Down

0 comments on commit 805a6f5

Please sign in to comment.