Skip to content

Commit

Permalink
test(ExpressiveCard): add @AVT test for default state
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Jun 3, 2024
1 parent 3e32727 commit 87ab073
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions e2e/components/ExpressiveCard/ExpressiveCard-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('ExpressiveCard @avt', () => {
test('@avt-default-state', async ({ page }) => {
await visitStory(page, {
component: 'ExpressiveCard',
id: 'ibm-products-components-cards-expressivecard--default',
globals: {
carbonTheme: 'white',
},
});
await expect(page).toHaveNoACViolations(
'ExpressiveCard @avt-default-state'
);
});
});

0 comments on commit 87ab073

Please sign in to comment.