From 90681ae86d487184741e103f244527ba4b32a63d Mon Sep 17 00:00:00 2001 From: Tibor Dancs Date: Mon, 26 Aug 2024 15:46:27 +0200 Subject: [PATCH] chore(tests): take a screenshot of resources page Signed-off-by: Tibor Dancs --- tests/playwright/src/ai-lab-extension.spec.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/playwright/src/ai-lab-extension.spec.ts b/tests/playwright/src/ai-lab-extension.spec.ts index aa431d5bc..c8a94e2c6 100644 --- a/tests/playwright/src/ai-lab-extension.spec.ts +++ b/tests/playwright/src/ai-lab-extension.spec.ts @@ -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'; @@ -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();