From 0e22dd2a3382da7620709492dd0678742dfc7362 Mon Sep 17 00:00:00 2001 From: Anna Wen <54281166+annawen1@users.noreply.github.com> Date: Fri, 10 May 2024 15:31:18 -0400 Subject: [PATCH] test(EditInPlace): default avt test (#5124) --- .../EditInPlace/EditInPlace-test.avt.e2e.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js diff --git a/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js b/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js new file mode 100644 index 0000000000..ac68232560 --- /dev/null +++ b/e2e/components/EditInPlace/EditInPlace-test.avt.e2e.js @@ -0,0 +1,24 @@ +/** + * Copyright IBM Corp. 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('EditInPlace @avt', () => { + test('@avt-default-state', async ({ page }) => { + await visitStory(page, { + component: 'EditInPlace', + id: 'ibm-products-patterns-edit-and-update-editinplace--default', + globals: { + carbonTheme: 'white', + }, + }); + await expect(page).toHaveNoACViolations('EditInPlace @avt-default-state'); + }); +});