-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca8a87c
commit 8a8297b
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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,23 @@ | ||
import { Page, expect, test } from "@playwright/test"; | ||
|
||
import { axeAccessibilityScan } from "../../test-utils/a11y"; | ||
import { visit } from "../../test-utils/storybook"; | ||
|
||
test.describe("loading 컴포넌트", () => { | ||
test("기본 시각적 회귀 테스트를 통과해야 합니다.", async ({ page }: { page: Page }) => { | ||
await visit(page, { | ||
id: "ui-loading--default", | ||
}); | ||
|
||
await expect(page).toHaveScreenshot(); | ||
}); | ||
|
||
test("axe를 사용한 웹 접근성 테스트를 통과해야 합니다.", async ({ page }: { page: Page }) => { | ||
await visit(page, { | ||
id: "ui-loading--default", | ||
}); | ||
|
||
const accessibilityScanResults = await axeAccessibilityScan(page); | ||
expect(accessibilityScanResults.violations).toEqual([]); | ||
}); | ||
}); |