Skip to content

Commit

Permalink
test(NoTagsEmptyState): add default state AVT test (carbon-design-sys…
Browse files Browse the repository at this point in the history
…tem#5256)

* test(NoTagsEmptyState): add default state AVT test

* fix(test): rename file to include -test

* fix(cspell): remove from file
  • Loading branch information
IgnacioBecerra authored May 20, 2024
1 parent c93cf1f commit 0105d08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions e2e/components/NoTagsEmptyState/NoTagsEmptyState-test.avt.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* 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('NoTagsEmptyState @avt', () => {
test('@avt-default-state', async ({ page }) => {
await visitStory(page, {
component: 'NoTagsEmptyState',
id: 'ibm-products-patterns-empty-state-notagsemptystate--default',
globals: {
carbonTheme: 'white',
},
});
await expect(page).toHaveNoACViolations(
'NoTagsEmptyState @avt-default-state'
);
});
});

0 comments on commit 0105d08

Please sign in to comment.