-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(ConditionBuilder): add default state AVT for Condition Builder
- Loading branch information
1 parent
b968386
commit 4202197
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
e2e/components/ConditionBuilder/ConditionBuilder-test.avt.e2e.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
); | ||
}); | ||
}); |