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/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'); + }); +}); 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 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'); + }); +}); 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'); + }); +}); 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'); + }); +});