Skip to content

Commit

Permalink
chore(tests): wait for machine and take screenshot
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW committed Aug 27, 2024
1 parent c6ad015 commit ff71ca2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { Page } from '@playwright/test';
import { expect as playExpect } from '@playwright/test';
import { afterAll, beforeAll, beforeEach, describe, test } from 'vitest';
import type { DashboardPage, ExtensionsPage, RunnerTestContext } from '@podman-desktop/tests-playwright';
import { NavigationBar, WelcomePage, PodmanDesktopRunner } from '@podman-desktop/tests-playwright';
import { NavigationBar, WelcomePage, PodmanDesktopRunner, ResourcesPage, waitForPodmanMachineStartup } from '@podman-desktop/tests-playwright';

Check failure on line 23 in tests/playwright/src/ai-lab-extension.spec.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / windows-2022

'ResourcesPage' is defined but never used

Check failure on line 23 in tests/playwright/src/ai-lab-extension.spec.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / ubuntu-22.04

'ResourcesPage' is defined but never used

Check failure on line 23 in tests/playwright/src/ai-lab-extension.spec.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / macos-12

'ResourcesPage' is defined but never used
import { AILabPage } from './model/ai-lab-page';
import type { AILabRecipesCatalogPage } from './model/ai-lab-recipes-catalog-page';
import type { AILabAppDetailsPage } from './model/ai-lab-app-details-page';
Expand Down Expand Up @@ -49,6 +49,8 @@ beforeAll(async () => {

await new WelcomePage(page).handleWelcomePage(true);
navigationBar = new NavigationBar(page);
await waitForPodmanMachineStartup(page);
await pdRunner.screenshot('ai-lab-tests-dashboard-podman-machine.png');
});

beforeEach<RunnerTestContext>(async ctx => {
Expand Down

0 comments on commit ff71ca2

Please sign in to comment.