From 2c3b462137756560a8078ef4d7d99489189d47b9 Mon Sep 17 00:00:00 2001 From: Jason Ojisan Date: Fri, 11 Oct 2024 22:02:22 -0700 Subject: [PATCH] Add screenshot of welcome page in visual test * Add screenshot of welcome page in visual test * Await #full-permissions-enabled div visible * Try getByText ZjAyYmUxOGJkMzcyZjMwYTYxM2Y5OWZiNmI5ZjZkNWJhMTIwNjRmMQo= --- test/playwright/visual.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/playwright/visual.spec.js b/test/playwright/visual.spec.js index b4eaa64e71..8cd362aa97 100644 --- a/test/playwright/visual.spec.js +++ b/test/playwright/visual.spec.js @@ -26,6 +26,13 @@ test.beforeEach(async ({context}) => { }); test('visual', async ({page, extensionId}) => { + // Open welcome page + await page.goto(`chrome-extension://${extensionId}/welcome.html`); + await expect(page.getByText('Welcome to Rikaitan by Ajatt-Tools!')).toBeVisible(); + + // Take a screenshot of the welcome page + await expect.soft(page).toHaveScreenshot('welcome-page.png'); + // Open settings await page.goto(`chrome-extension://${extensionId}/settings.html`);