Skip to content

Commit

Permalink
chore(test): refactor to use exposed method (#525)
Browse files Browse the repository at this point in the history
* chore(test): refactor to use exposed method
  • Loading branch information
cbr7 authored Jun 6, 2024
1 parent f506778 commit acec1bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/playwright/src/bootc-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
WelcomePage,
deleteImage,
removeFolderIfExists,
waitForPodmanMachineStartup,
} from '@podman-desktop/tests-playwright';
import { expect as playExpect } from '@playwright/test';
import { RunnerTestContext } from '@podman-desktop/tests-playwright';
Expand Down Expand Up @@ -60,10 +61,7 @@ beforeAll(async () => {
const welcomePage = new WelcomePage(page);
await welcomePage.handleWelcomePage(true);
navBar = new NavigationBar(page);
const dashboardPage = await navBar.openDashboard();
await playExpect(dashboardPage.heading).toBeVisible();
await playExpect(dashboardPage.podmanStatusLabel).toBeVisible({ timeout: 10000 });
await playExpect(dashboardPage.podmanStatusLabel).toHaveText('RUNNING', { timeout: 10000 });
await waitForPodmanMachineStartup(page);
});

afterAll(async () => {
Expand Down

0 comments on commit acec1bc

Please sign in to comment.