-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Migrate visual regression tests to Playwright
Signed-off-by: Ferdinand Thiessen <[email protected]>
- Loading branch information
Showing
188 changed files
with
191 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-4.15 KB
...avigationItem.cy.ts/NcAppNavigationItem-primary-on-active-entry-menu-active.png
Binary file not shown.
Binary file removed
BIN
-2.35 KB
...ts/base/AppNavigationItem.cy.ts/NcAppNavigationItem-primary-on-active-entry.png
Binary file not shown.
Binary file removed
BIN
-4.04 KB
...avigationItem.cy.ts/NcAppNavigationItem-primary-on-active-route-menu-active.png
Binary file not shown.
Binary file removed
BIN
-2.31 KB
...ts/base/AppNavigationItem.cy.ts/NcAppNavigationItem-primary-on-active-route.png
Binary file not shown.
Binary file removed
BIN
-801 Bytes
.../base/AppNavigationItem.cy.ts/NcAppNavigationItem-tertiary-non-active-entry.png
Binary file not shown.
Binary file removed
BIN
-807 Bytes
.../base/AppNavigationItem.cy.ts/NcAppNavigationItem-tertiary-non-active-route.png
Binary file not shown.
Binary file removed
BIN
-6.88 KB
...ull-starred_false-compact_true-header_image-secondary_button-editable_false.png
Binary file not shown.
Binary file removed
BIN
-7.52 KB
...null-starred_false-compact_true-header_image-secondary_button-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.31 KB
..._null-starred_false-compact_true-header_image-secondary_none-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.29 KB
...e_null-starred_false-compact_true-header_image-secondary_none-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.36 KB
...null-starred_false-compact_true-header_none-secondary_button-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.29 KB
..._null-starred_false-compact_true-header_none-secondary_button-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.76 KB
...e_null-starred_false-compact_true-header_none-secondary_none-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.8 KB
...me_null-starred_false-compact_true-header_none-secondary_none-editable_true.png
Binary file not shown.
Binary file removed
BIN
-6 KB
...null-starred_null-compact_true-header_image-secondary_button-editable_false.png
Binary file not shown.
Binary file removed
BIN
-6.66 KB
..._null-starred_null-compact_true-header_image-secondary_button-editable_true.png
Binary file not shown.
Binary file removed
BIN
-6.46 KB
...e_null-starred_null-compact_true-header_image-secondary_none-editable_false.png
Binary file not shown.
Binary file removed
BIN
-7.44 KB
...me_null-starred_null-compact_true-header_image-secondary_none-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.09 KB
..._null-starred_null-compact_true-header_none-secondary_button-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.08 KB
...e_null-starred_null-compact_true-header_none-secondary_button-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.89 KB
...me_null-starred_null-compact_true-header_none-secondary_none-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.65 KB
...ame_null-starred_null-compact_true-header_none-secondary_none-editable_true.png
Binary file not shown.
Binary file removed
BIN
-6.78 KB
...null-starred_true-compact_true-header_image-secondary_button-editable_false.png
Binary file not shown.
Binary file removed
BIN
-7.45 KB
..._null-starred_true-compact_true-header_image-secondary_button-editable_true.png
Binary file not shown.
Binary file removed
BIN
-7.22 KB
...e_null-starred_true-compact_true-header_image-secondary_none-editable_false.png
Binary file not shown.
Binary file removed
BIN
-8.17 KB
...me_null-starred_true-compact_true-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.3 KB
..._null-starred_true-compact_true-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.18 KB
...e_null-starred_true-compact_true-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.7 KB
...me_null-starred_true-compact_true-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.69 KB
...ame_null-starred_true-compact_true-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-12 KB
...rue-starred_false-compact_true-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-12.6 KB
...true-starred_false-compact_true-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.3 KB
..._true-starred_false-compact_true-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
...e_true-starred_false-compact_true-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.2 KB
...true-starred_false-compact_true-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.1 KB
..._true-starred_false-compact_true-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
...e_true-starred_false-compact_true-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-15.3 KB
...me_true-starred_false-compact_true-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-11.2 KB
...true-starred_null-compact_true-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-11.8 KB
..._true-starred_null-compact_true-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-12.4 KB
...e_true-starred_null-compact_true-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-13.4 KB
...me_true-starred_null-compact_true-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.6 KB
..._true-starred_null-compact_true-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.6 KB
...e_true-starred_null-compact_true-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-15.2 KB
...me_true-starred_null-compact_true-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-16 KB
...ame_true-starred_null-compact_true-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-11.9 KB
...true-starred_true-compact_true-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-12.5 KB
..._true-starred_true-compact_true-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.2 KB
...e_true-starred_true-compact_true-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.1 KB
...me_true-starred_true-compact_true-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.1 KB
..._true-starred_true-compact_true-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14 KB
...e_true-starred_true-compact_true-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
...me_true-starred_true-compact_true-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-15.2 KB
...ame_true-starred_true-compact_true-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-9.46 KB
...ll-starred_false-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-10.5 KB
...ull-starred_false-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-10.2 KB
...null-starred_false-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-11 KB
..._null-starred_false-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.36 KB
...ull-starred_false-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.29 KB
...null-starred_false-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.76 KB
..._null-starred_false-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.8 KB
...e_null-starred_false-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-9.7 KB
...ull-starred_null-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-10.5 KB
...null-starred_null-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-9.99 KB
..._null-starred_null-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-10.7 KB
...e_null-starred_null-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.09 KB
...null-starred_null-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.08 KB
..._null-starred_null-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.89 KB
...e_null-starred_null-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.65 KB
...me_null-starred_null-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-9.4 KB
...ull-starred_true-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-10.4 KB
...null-starred_true-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-10.2 KB
..._null-starred_true-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-10.9 KB
...e_null-starred_true-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.3 KB
...null-starred_true-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.18 KB
..._null-starred_true-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-7.7 KB
...e_null-starred_true-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-8.69 KB
...me_null-starred_true-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-16.9 KB
...ue-starred_false-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-17.9 KB
...rue-starred_false-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-17.7 KB
...true-starred_false-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-18.4 KB
..._true-starred_false-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.2 KB
...rue-starred_false-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.1 KB
...true-starred_false-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
..._true-starred_false-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-15.3 KB
...e_true-starred_false-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-18.1 KB
...rue-starred_null-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-18.8 KB
...true-starred_null-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-18.3 KB
..._true-starred_null-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-19 KB
...e_true-starred_null-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.6 KB
...true-starred_null-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14.6 KB
..._true-starred_null-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-15.2 KB
...e_true-starred_null-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-16 KB
...me_true-starred_null-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-16.9 KB
...rue-starred_true-compact_false-header_image-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-17.8 KB
...true-starred_true-compact_false-header_image-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-17.6 KB
..._true-starred_true-compact_false-header_image-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-18.3 KB
...e_true-starred_true-compact_false-header_image-secondary_none-editable_true.png
Diff not rendered.
Binary file removed
BIN
-13.1 KB
...true-starred_true-compact_false-header_none-secondary_button-editable_false.png
Diff not rendered.
Binary file removed
BIN
-14 KB
..._true-starred_true-compact_false-header_none-secondary_button-editable_true.png
Diff not rendered.
Binary file removed
BIN
-14.2 KB
...e_true-starred_true-compact_false-header_none-secondary_none-editable_false.png
Diff not rendered.
Binary file removed
BIN
-15.2 KB
...me_true-starred_true-compact_false-header_none-secondary_none-editable_true.png
Diff not rendered.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
tests/component/components/NcAppNavigationItem/AppNavigation.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<NcContent app-name="testing"> | ||
<NcAppNavigation aria-label="In-app navigation"> | ||
<template #list> | ||
<NcAppNavigationItem name="Home" to="/" :editable="true" /> | ||
<NcAppNavigationItem name="Foo" to="/foo" :editable="true" /> | ||
<NcAppNavigationItem name="Back" active :editable="true" /> | ||
<NcAppNavigationItem name="Bar" :editable="true" /> | ||
</template> | ||
</NcAppNavigation> | ||
<NcAppContent /> | ||
</NcContent> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
/*! | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
import NcAppContent from '../../../../src/components/NcAppContent/NcAppContent.vue' | ||
import NcAppNavigation from '../../../../src/components/NcAppNavigation/NcAppNavigation.vue' | ||
import NcAppNavigationItem from '../../../../src/components/NcAppNavigationItem/NcAppNavigationItem.vue' | ||
import NcContent from '../../../../src/components/NcContent/NcContent.vue' | ||
</script> |
78 changes: 78 additions & 0 deletions
78
tests/component/components/NcAppNavigationItem/visual.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
import type { HooksConfig } from '../../setup/index' | ||
import { expect, test } from '@playwright/experimental-ct-vue' | ||
|
||
import AppNavigation from './AppNavigation.story.vue' | ||
|
||
// A little bit hacky but we test a wrapper element so we need to use the real NcContent and NcAppNavigation | ||
test.beforeEach(async ({ mount, page }) => { | ||
const handle = await page.locator('#content').elementHandle() | ||
expect(handle).not.toBeNull() | ||
await handle!.evaluate((node) => { node.innerHTML = ''; node.id = 'root' }) | ||
|
||
await mount<HooksConfig>(AppNavigation, { | ||
hooksConfig: { | ||
routes: [ | ||
{ path: '/', component: AppNavigation }, | ||
{ path: '/foo', component: AppNavigation }, | ||
] | ||
} | ||
}) | ||
}) | ||
|
||
test('has primary styling on active route', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(navigation.getByRole('listitem', { name: 'Home' })).toHaveScreenshot() | ||
}) | ||
|
||
test('has primary button styling on active route with editing=true', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
const item = navigation.getByRole('listitem', { name: 'Home' }) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(item).toBeVisible() | ||
|
||
await item.getByRole('button', { name: 'Edit item' }).click() | ||
await expect(item.getByRole('textbox')).toBeVisible() | ||
|
||
await expect(item).toHaveScreenshot() | ||
}) | ||
|
||
test('has tertiary styling on non active route', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(navigation.getByRole('listitem', { name: 'Foo'})).toHaveScreenshot() | ||
}) | ||
|
||
test('has primary styling on active entry', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(navigation.getByRole('listitem', { name: 'Back' })).toHaveScreenshot() | ||
}) | ||
|
||
test('has primary button styling on active entry with editing=true', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
const item = navigation.getByRole('listitem', { name: 'Back' }) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(item).toBeVisible() | ||
|
||
await item.getByRole('button', { name: 'Edit item' }).click() | ||
await expect(item.getByRole('textbox')).toBeVisible() | ||
|
||
await expect(item).toHaveScreenshot() | ||
}) | ||
|
||
test('has tertiary styling on non active entry', { tag: '@visual' }, async ({ page }) => { | ||
const navigation = page.getByRole('navigation', { name: 'In-app navigation'}) | ||
|
||
await expect(navigation).toBeVisible() | ||
await expect(navigation.getByRole('listitem', { name: 'Bar' })).toHaveScreenshot() | ||
}) |
50 changes: 50 additions & 0 deletions
50
tests/component/components/NcAppSidebar/AppSidebar.story.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<NcContent app-name="testing"> | ||
<NcAppContent> | ||
App content | ||
</NcAppContent> | ||
<NcAppSidebar :compact="compact" | ||
name="Very long title that will certainly overflow the sidebar width" | ||
:subname="subname ? 'Very long subtitle what will certainly overflow the sidebar width' : ''" | ||
:name-editable="nameEditable" | ||
> | ||
<template v-if="header" #header> | ||
<div style="background-color: gold; height: 100%; width: 100%"></div> | ||
</template> | ||
<template v-if="secondaryActions" #secondary-actions> | ||
<NcActionButton> | ||
<template #icon> | ||
<IconDelete :size="20" /> | ||
</template> | ||
Action1 | ||
</NcActionButton> | ||
<NcActionButton> | ||
Action2 | ||
</NcActionButton> | ||
</template> | ||
<div>Sidebar content</div> | ||
</NcAppSidebar> | ||
</NcContent> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
/*! | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
import NcAppContent from '../../../../src/components/NcAppContent/NcAppContent.vue' | ||
import NcAppSidebar from '../../../../src/components/NcAppSidebar/NcAppSidebar.vue' | ||
import NcActionButton from '../../../../src/components/NcActionButton/NcActionButton.vue' | ||
import NcContent from '../../../../src/components/NcContent/NcContent.vue' | ||
import IconDelete from 'vue-material-design-icons/Delete.vue' | ||
defineProps<{ | ||
compact: boolean | ||
subname: boolean | ||
nameEditable: boolean | ||
header: boolean | ||
secondaryActions: boolean | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
import { expect, test } from '@playwright/experimental-ct-vue' | ||
|
||
import AppSidebar from './AppSidebar.story.vue' | ||
|
||
// A little bit hacky but we test a wrapper element so we need to use the real NcContent and NcAppNavigation | ||
test.beforeEach(async ({ mount, page }) => { | ||
const handle = await page.locator('#content').elementHandle() | ||
expect(handle).not.toBeNull() | ||
await handle!.evaluate((node) => { node.innerHTML = ''; node.id = 'root' }) | ||
}) | ||
|
||
new Array(2**5) | ||
.fill('') | ||
.map((_, index) => ({ | ||
compact: Boolean(index&16), | ||
subname: Boolean(index&8), | ||
nameEditable: Boolean(index&4), | ||
header: Boolean(index&2), | ||
secondaryActions: Boolean(index&1), | ||
})) | ||
.forEach((props, index) => { | ||
test( | ||
`Sidebar header${props.compact ? ': compact ' : (index > 0 ? ': ' : '')}${props.subname ? 'subname ' : ''}${props.nameEditable ? 'editable ' : ''}${props.header ? 'header ' : ''}${props.secondaryActions ? 'actions' : ''}`, | ||
{ tag: '@visual' }, | ||
async ({ mount }, | ||
) => { | ||
const component = await mount(AppSidebar, { | ||
props, | ||
}) | ||
await expect(component).toBeVisible() | ||
await expect(component.locator('header')).toHaveScreenshot({ caret: 'hide' }) | ||
}) | ||
}) |
Binary file added
BIN
+3.16 KB
...s-primary-button-styling-on-active-entry-with-editing-true-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.39 KB
...as-primary-button-styling-on-active-entry-with-editing-true-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.06 KB
...s-primary-button-styling-on-active-route-with-editing-true-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.29 KB
...as-primary-button-styling-on-active-route-with-editing-true-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
...sual.spec.ts-snapshots/has-primary-styling-on-active-entry-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.89 KB
...isual.spec.ts-snapshots/has-primary-styling-on-active-entry-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.49 KB
...sual.spec.ts-snapshots/has-primary-styling-on-active-route-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.77 KB
...isual.spec.ts-snapshots/has-primary-styling-on-active-route-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.39 KB
...spec.ts-snapshots/has-tertiary-styling-on-non-active-entry-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.06 KB
....spec.ts-snapshots/has-tertiary-styling-on-non-active-entry-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.37 KB
...spec.ts-snapshots/has-tertiary-styling-on-non-active-route-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+1014 Bytes
....spec.ts-snapshots/has-tertiary-styling-on-non-active-route-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.84 KB
...nents/NcAppSidebar/visual.spec.ts-snapshots/Sidebar-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.03 KB
...onents/NcAppSidebar/visual.spec.ts-snapshots/Sidebar-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.45 KB
...AppSidebar/visual.spec.ts-snapshots/Sidebar-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.74 KB
...cAppSidebar/visual.spec.ts-snapshots/Sidebar-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.84 KB
...AppSidebar/visual.spec.ts-snapshots/Sidebar-header-compact-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.03 KB
...cAppSidebar/visual.spec.ts-snapshots/Sidebar-header-compact-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.45 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-compact-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.74 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-compact-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.5 KB
...r/visual.spec.ts-snapshots/Sidebar-header-compact-editable-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.27 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-compact-editable-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.1 KB
....spec.ts-snapshots/Sidebar-header-compact-editable-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.9 KB
...l.spec.ts-snapshots/Sidebar-header-compact-editable-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.53 KB
...l.spec.ts-snapshots/Sidebar-header-compact-editable-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.71 KB
...al.spec.ts-snapshots/Sidebar-header-compact-editable-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.91 KB
...s-snapshots/Sidebar-header-compact-editable-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.36 KB
...ts-snapshots/Sidebar-header-compact-editable-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.2 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-compact-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.79 KB
...ebar/visual.spec.ts-snapshots/Sidebar-header-compact-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+3.45 KB
...al.spec.ts-snapshots/Sidebar-header-compact-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.18 KB
...ual.spec.ts-snapshots/Sidebar-header-compact-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.41 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-compact-subname-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.48 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-compact-subname-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.43 KB
...l.spec.ts-snapshots/Sidebar-header-compact-subname-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.72 KB
...al.spec.ts-snapshots/Sidebar-header-compact-subname-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.04 KB
....spec.ts-snapshots/Sidebar-header-compact-subname-editable-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.68 KB
...l.spec.ts-snapshots/Sidebar-header-compact-subname-editable-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.05 KB
...-snapshots/Sidebar-header-compact-subname-editable-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.83 KB
...s-snapshots/Sidebar-header-compact-subname-editable-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.04 KB
...s-snapshots/Sidebar-header-compact-subname-editable-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.17 KB
...ts-snapshots/Sidebar-header-compact-subname-editable-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.11 KB
...ots/Sidebar-header-compact-subname-editable-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.49 KB
...hots/Sidebar-header-compact-subname-editable-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.74 KB
...al.spec.ts-snapshots/Sidebar-header-compact-subname-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.26 KB
...ual.spec.ts-snapshots/Sidebar-header-compact-subname-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.71 KB
...ts-snapshots/Sidebar-header-compact-subname-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.35 KB
....ts-snapshots/Sidebar-header-compact-subname-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.5 KB
...ppSidebar/visual.spec.ts-snapshots/Sidebar-header-editable-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.27 KB
...AppSidebar/visual.spec.ts-snapshots/Sidebar-header-editable-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.1 KB
...r/visual.spec.ts-snapshots/Sidebar-header-editable-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+4.9 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-editable-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.08 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-editable-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.5 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-editable-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.61 KB
...l.spec.ts-snapshots/Sidebar-header-editable-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.15 KB
...al.spec.ts-snapshots/Sidebar-header-editable-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.31 KB
...cAppSidebar/visual.spec.ts-snapshots/Sidebar-header-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.24 KB
...NcAppSidebar/visual.spec.ts-snapshots/Sidebar-header-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.9 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.83 KB
...ebar/visual.spec.ts-snapshots/Sidebar-header-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.41 KB
...AppSidebar/visual.spec.ts-snapshots/Sidebar-header-subname-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.48 KB
...cAppSidebar/visual.spec.ts-snapshots/Sidebar-header-subname-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.43 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-subname-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.72 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-subname-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.04 KB
...r/visual.spec.ts-snapshots/Sidebar-header-subname-editable-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.68 KB
...ar/visual.spec.ts-snapshots/Sidebar-header-subname-editable-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.05 KB
....spec.ts-snapshots/Sidebar-header-subname-editable-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.83 KB
...l.spec.ts-snapshots/Sidebar-header-subname-editable-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
...l.spec.ts-snapshots/Sidebar-header-subname-editable-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
...al.spec.ts-snapshots/Sidebar-header-subname-editable-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.7 KB
...s-snapshots/Sidebar-header-subname-editable-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
...ts-snapshots/Sidebar-header-subname-editable-header-actions-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+10.4 KB
...bar/visual.spec.ts-snapshots/Sidebar-header-subname-header-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+12 KB
...ebar/visual.spec.ts-snapshots/Sidebar-header-subname-header-1-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+10 KB
...al.spec.ts-snapshots/Sidebar-header-subname-header-actions-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
...ual.spec.ts-snapshots/Sidebar-header-subname-header-actions-1-firefox-linux.png
Oops, something went wrong.