From 669f4796db7e6e004c14bb72a3fbb0789b355000 Mon Sep 17 00:00:00 2001 From: Anamika T S <47971732+anamikaanu96@users.noreply.github.com> Date: Tue, 21 May 2024 05:06:56 +0530 Subject: [PATCH] test(Decorator): add default state AVT test (#5244) --- .../Decorator/Decorator-test.avt.e2e.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 e2e/components/Decorator/Decorator-test.avt.e2e.js diff --git a/e2e/components/Decorator/Decorator-test.avt.e2e.js b/e2e/components/Decorator/Decorator-test.avt.e2e.js new file mode 100644 index 0000000000..853ea3b1f7 --- /dev/null +++ b/e2e/components/Decorator/Decorator-test.avt.e2e.js @@ -0,0 +1,24 @@ +/** + * 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('Decorator @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'Decorator', + id: 'ibm-products-components-decorators-decorator--default', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('Decorator @avt-default-state'); + }); +});