Skip to content

Commit

Permalink
test(ConditionBuilder): add default state AVT for Condition Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
amal-k-joy committed Aug 27, 2024
1 parent b968386 commit 4202197
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions e2e/components/ConditionBuilder/ConditionBuilder-test.avt.e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* 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';

const { expect, test } = require('@playwright/test');
const { visitStory } = require('../../test-utils/storybook');

test.describe('ConditionBuilder @avt', () => {
test('@avt-default-state', async ({ page }) => {
await visitStory(page, {
component: 'ConditionBuilder',
id: 'experimental-components-conditionbuilder--condition-builder',
globals: {
carbonTheme: 'white',
},
});
await expect(page).toHaveNoACViolations(
'ConditionBuilder @avt-default-state'
);
});
});

0 comments on commit 4202197

Please sign in to comment.