Skip to content

Commit

Permalink
chore(tests): take a screenshot of resources page
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW committed Aug 26, 2024
1 parent c6ad015 commit 90681ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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 } from '@podman-desktop/tests-playwright';
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 @@ -60,6 +60,14 @@ afterAll(async () => {
});

describe(`AI Lab extension installation and verification`, async () => {
describe(`Verify Podman Machine details`, async () => {
test(`Open Podman Resources`, async () => {
const settingsBar = await navigationBar.openSettings();
const resourcesPage = await settingsBar.openTabPage(ResourcesPage);
await playExpect(resourcesPage.heading).toBeVisible();
await pdRunner.screenshot('ai-lab-tests-resources-page');
});
});
describe(`AI Lab extension installation`, async () => {
test(`Open Settings -> Extensions page`, async () => {
dashboardPage = await navigationBar.openDashboard();
Expand Down

0 comments on commit 90681ae

Please sign in to comment.