Skip to content

Commit

Permalink
test(FullPageError): add default state avt test (carbon-design-system…
Browse files Browse the repository at this point in the history
…#5125)

* test(FullPageError): add default state avt test

* Update e2e/components/FullPageError/FullPageError-test.avt.e2e.js
  • Loading branch information
annawen1 authored May 10, 2024
1 parent 51ed3f4 commit 512b2a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"version": "0.1",
"language": "en",
"dictionaries": [
"contributors",
"html",
"packages"
],
"dictionaries": ["contributors", "html", "packages"],
"dictionaryDefinitions": [
{
"name": "contributors",
Expand Down Expand Up @@ -97,6 +93,7 @@
"editsidepanel",
"emptystate",
"expressivecard",
"fullpageerror",
"gridcell",
"guidebanner",
"haspopup",
Expand Down
24 changes: 24 additions & 0 deletions e2e/components/FullPageError/FullPageError-test.avt.e2e.js
Original file line number Diff line number Diff line change
@@ -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');
});
});

0 comments on commit 512b2a9

Please sign in to comment.