From 02d722e9e1526ff2ca461c2a79db4332e001135e Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 28 Apr 2023 16:31:37 -0400 Subject: [PATCH] chore(): add missing screenshot function (#27334) Issue number: N/A --------- ## What is the current behavior? item sliding tests were missing a `screenshot` function ## What is the new behavior? - Added the function - Also removed stray `config` params This was not caught because these tests are currently skipped. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- .../components/item-sliding/test/basic/item-sliding.e2e.ts | 2 +- core/src/components/list/test/lines/list.e2e.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/item-sliding/test/basic/item-sliding.e2e.ts b/core/src/components/item-sliding/test/basic/item-sliding.e2e.ts index 0188887f29..c4db981021 100644 --- a/core/src/components/item-sliding/test/basic/item-sliding.e2e.ts +++ b/core/src/components/item-sliding/test/basic/item-sliding.e2e.ts @@ -6,7 +6,7 @@ import { testSlidingItem } from '../test.utils'; /** * item-sliding doesn't have mode-specific styling */ -configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => { +configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => { test.describe(title('item-sliding: basic'), () => { // TODO FW-3006 test.skip('should not have visual regressions', async ({ page, browserName }, testInfo) => { diff --git a/core/src/components/list/test/lines/list.e2e.ts b/core/src/components/list/test/lines/list.e2e.ts index 7f564fff06..c784fe5fe9 100644 --- a/core/src/components/list/test/lines/list.e2e.ts +++ b/core/src/components/list/test/lines/list.e2e.ts @@ -13,14 +13,14 @@ configs().forEach(({ title, screenshot, config }) => { test('lines="inset" should render correctly', async ({ page }) => { await page.goto(`/src/components/list/test/lines`, config); - const list = page.locator('ion-list[lines="inset"]', config); + const list = page.locator('ion-list[lines="inset"]'); await expect(list).toHaveScreenshot(screenshot(`list-lines-inset`)); }); test('lines="none" should render correctly', async ({ page }) => { await page.goto(`/src/components/list/test/lines`, config); - const list = page.locator('ion-list[lines="none"]', config); + const list = page.locator('ion-list[lines="none"]'); await expect(list).toHaveScreenshot(screenshot(`list-lines-none`)); });