diff --git a/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts b/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts index 6855be012f..995dfe2ac4 100644 --- a/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts +++ b/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts @@ -122,4 +122,13 @@ test.describe('Lighthouse tests', () => { await page.waitForURL('**/placeholder'); await performAudit('placeholder', page, testInfo); }); + + test('sdk-intro', async ({page}, testInfo) => { + await page.goto(baseUrl); + const appFixture = new AppFixtureComponent(new O3rElement({element: page.locator('app-root'), page})); + await appFixture.navigateToSDKIntro(); + await page.waitForURL('**/sdk-intro'); + await performAudit('sdk-intro', page, testInfo); + }); + }); diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/component-replacement.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/component-replacement.png index 5955c0d6b0..d0ee141aff 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/component-replacement.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/component-replacement.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/configuration.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/configuration.png index 0efb9cd2e2..a372098c82 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/configuration.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/configuration.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/design-token.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/design-token.png index 4a2f82b9a4..8af0908d29 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/design-token.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/design-token.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/dynamic-content.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/dynamic-content.png index ded1182c5c..0017f62ef1 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/dynamic-content.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/dynamic-content.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/home.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/home.png index 2b21a69e58..0c5a8c9a68 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/home.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/home.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/localization.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/localization.png index 8e3d306aca..2123675442 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/localization.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/localization.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/placeholder.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/placeholder.png index f9c7e35dda..daa8006619 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/placeholder.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/placeholder.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/rules-engine.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/rules-engine.png index 29c1a84219..d6f540a92e 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/rules-engine.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/rules-engine.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/run-app-locally.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/run-app-locally.png index 605ee97601..ddf1ae6afc 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/run-app-locally.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/run-app-locally.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-generator.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-generator.png index 283ccfcce1..6e42ac306d 100644 Binary files a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-generator.png and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-generator.png differ diff --git a/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-intro.png b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-intro.png new file mode 100644 index 0000000000..4c26bf98b7 Binary files /dev/null and b/apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-intro.png differ diff --git a/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts b/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts index b0e66c5166..a30b0db8c8 100644 --- a/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts +++ b/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts @@ -68,5 +68,11 @@ test.describe.serial('Sanity test', () => { await page.waitForURL('**/placeholder'); await expect(page).toHaveScreenshot([browserName, 'placeholder.png'], {fullPage: true, mask: [page.locator('.visual-testing-ignore')]}); }); + + await test.step('sdk-intro', async () => { + await appFixture.navigateToSDKIntro(); + await page.waitForURL('**/sdk-intro'); + await expect(page).toHaveScreenshot([browserName, 'sdk-intro.png'], {fullPage: true, mask: [page.locator('.visual-testing-ignore')]}); + }); }); }); diff --git a/apps/showcase/src/app/app.fixture.ts b/apps/showcase/src/app/app.fixture.ts index c6bbf7ecc2..ce72e48fec 100644 --- a/apps/showcase/src/app/app.fixture.ts +++ b/apps/showcase/src/app/app.fixture.ts @@ -29,6 +29,8 @@ export interface AppFixture extends ComponentFixtureProfile { navigateToSDKGenerator(): Promise; /** Go to placeholder page */ navigateToPlaceholder(): Promise; + /** Go to SDK-intro page */ + navigateToSDKIntro(): Promise; } export class AppFixtureComponent extends O3rComponentFixture implements AppFixture { @@ -83,8 +85,13 @@ export class AppFixtureComponent extends O3rComponentFixture implements AppFixtu } /** @inheritDoc */ - public async navigateToSDKGenerator() { + public async navigateToSDKIntro() { await (await this.getSideNav()).clickOnLink(9); } + /** @inheritDoc */ + public async navigateToSDKGenerator() { + await (await this.getSideNav()).clickOnLink(10); + } + }