From 51ed3f41dac220e2cfa386414ecbba13192ff6d9 Mon Sep 17 00:00:00 2001 From: Anna Wen <54281166+annawen1@users.noreply.github.com> Date: Fri, 10 May 2024 15:30:45 -0400 Subject: [PATCH 1/5] test(Checklist): add default state avt test (#5128) --- .../Checklist/Checklist-test.avt.e2e.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 e2e/components/Checklist/Checklist-test.avt.e2e.js diff --git a/e2e/components/Checklist/Checklist-test.avt.e2e.js b/e2e/components/Checklist/Checklist-test.avt.e2e.js new file mode 100644 index 0000000000..5d1b8a9006 --- /dev/null +++ b/e2e/components/Checklist/Checklist-test.avt.e2e.js @@ -0,0 +1,24 @@ +/** + * Copyright IBM Corp. 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +import { expect, test } from '@playwright/test'; +import { visitStory } from '../../test-utils/storybook'; + +test.describe('Checklist @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'Checklist', + id: 'ibm-products-novice-to-pro-checklist--checklist', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('Checklist @avt-default-state'); + }); +}); From 512b2a9f93c366aaf6c7af0359a508dec5c86b09 Mon Sep 17 00:00:00 2001 From: Anna Wen <54281166+annawen1@users.noreply.github.com> Date: Fri, 10 May 2024 15:31:06 -0400 Subject: [PATCH 2/5] test(FullPageError): add default state avt test (#5125) * test(FullPageError): add default state avt test * Update e2e/components/FullPageError/FullPageError-test.avt.e2e.js --- cspell.json | 7 ++---- .../FullPageError-test.avt.e2e.js | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 e2e/components/FullPageError/FullPageError-test.avt.e2e.js diff --git a/cspell.json b/cspell.json index ed2fcdf782..ccc8ca08ce 100644 --- a/cspell.json +++ b/cspell.json @@ -1,11 +1,7 @@ { "version": "0.1", "language": "en", - "dictionaries": [ - "contributors", - "html", - "packages" - ], + "dictionaries": ["contributors", "html", "packages"], "dictionaryDefinitions": [ { "name": "contributors", @@ -97,6 +93,7 @@ "editsidepanel", "emptystate", "expressivecard", + "fullpageerror", "gridcell", "guidebanner", "haspopup", diff --git a/e2e/components/FullPageError/FullPageError-test.avt.e2e.js b/e2e/components/FullPageError/FullPageError-test.avt.e2e.js new file mode 100644 index 0000000000..f396015c7d --- /dev/null +++ b/e2e/components/FullPageError/FullPageError-test.avt.e2e.js @@ -0,0 +1,24 @@ +/** + * Copyright IBM Corp. 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +import { expect, test } from '@playwright/test'; +import { visitStory } from '../../test-utils/storybook'; + +test.describe('FullPageError @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'FullPageError', + id: 'ibm-products-patterns-full-page-error-fullpageerror--full-page-error', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('FullPageError @avt-default-state'); + }); +}); From 0e22dd2a3382da7620709492dd0678742dfc7362 Mon Sep 17 00:00:00 2001 From: Anna Wen <54281166+annawen1@users.noreply.github.com> Date: Fri, 10 May 2024 15:31:18 -0400 Subject: [PATCH 3/5] test(EditInPlace): default avt test (#5124) --- .../EditInPlace/EditInPlace-test.avt.e2e.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js diff --git a/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js b/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js new file mode 100644 index 0000000000..ac68232560 --- /dev/null +++ b/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js @@ -0,0 +1,24 @@ +/** + * Copyright IBM Corp. 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +import { expect, test } from '@playwright/test'; +import { visitStory } from '../../test-utils/storybook'; + +test.describe('EditInPlace @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'EditInPlace', + id: 'ibm-products-patterns-edit-and-update-editinplace--default', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('EditInPlace @avt-default-state'); + }); +}); From aa48146b6ecb0bb485f85c787879b151363f9d62 Mon Sep 17 00:00:00 2001 From: Nandan Devadula <47176249+devadula-nandan@users.noreply.github.com> Date: Mon, 13 May 2024 11:38:13 +0530 Subject: [PATCH 4/5] test(CreateFullPage): add default state avt test (#5147) * test(CreateFullPage): add default state avt test * test(CreateFullPage): add default state avt test --- .../CreateFullPage-test.avt.e2e.js | 28 +++++++++++++++++++ .../CreateModal-test.avt.e2e.js | 0 2 files changed, 28 insertions(+) create mode 100644 e2e/components/CreateFlows/CreateFullPage-test.avt.e2e.js rename e2e/components/{CreateModal => CreateFlows}/CreateModal-test.avt.e2e.js (100%) diff --git a/e2e/components/CreateFlows/CreateFullPage-test.avt.e2e.js b/e2e/components/CreateFlows/CreateFullPage-test.avt.e2e.js new file mode 100644 index 0000000000..b9fddee016 --- /dev/null +++ b/e2e/components/CreateFlows/CreateFullPage-test.avt.e2e.js @@ -0,0 +1,28 @@ +// cspell:words createfullpage + +/** + * Copyright IBM Corp. 2024, 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +import { expect, test } from '@playwright/test'; +import { visitStory } from '../../test-utils/storybook'; + +test.describe('CreateFullPage @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'CreateFullPage', + id: 'ibm-products-patterns-create-flows-createfullpage--create-full-page', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations( + 'CreateFullPage @avt-default-state' + ); + }); +}); diff --git a/e2e/components/CreateModal/CreateModal-test.avt.e2e.js b/e2e/components/CreateFlows/CreateModal-test.avt.e2e.js similarity index 100% rename from e2e/components/CreateModal/CreateModal-test.avt.e2e.js rename to e2e/components/CreateFlows/CreateModal-test.avt.e2e.js From 03131bbb088dbc14c0f5df0aeccfd218815f4d44 Mon Sep 17 00:00:00 2001 From: Nandan Devadula <47176249+devadula-nandan@users.noreply.github.com> Date: Mon, 13 May 2024 12:35:40 +0530 Subject: [PATCH 5/5] test(UserAvatar): add default state avt test (#5146) --- .../UserAvatar/UserAvatar-test.avt.e2e.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 e2e/components/UserAvatar/UserAvatar-test.avt.e2e.js diff --git a/e2e/components/UserAvatar/UserAvatar-test.avt.e2e.js b/e2e/components/UserAvatar/UserAvatar-test.avt.e2e.js new file mode 100644 index 0000000000..5430010055 --- /dev/null +++ b/e2e/components/UserAvatar/UserAvatar-test.avt.e2e.js @@ -0,0 +1,26 @@ +// cspell:words useravatar + +/** + * Copyright IBM Corp. 2024, 2024 + * + * This source code is licensed under the Apache-2.0 license found in the + * LICENSE file in the root directory of this source tree. + */ + +'use strict'; + +import { expect, test } from '@playwright/test'; +import { visitStory } from '../../test-utils/storybook'; + +test.describe('UserAvatar @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'UserAvatar', + id: 'ibm-products-components-user-avatar-useravatar--default', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('UserAvatar @avt-default-state'); + }); +});