-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add screenshot test for DocPage
- Loading branch information
1 parent
4f0c761
commit fad6a4a
Showing
5 changed files
with
12 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,9 @@ | ||
import {expect, test} from '@playwright/test'; | ||
|
||
import {ROOT_ELEMENT_SELECTOR, URL_SEGMENT, VIEW_MODE} from '../utils'; | ||
|
||
test('Document page test', async ({page}) => { | ||
await page.goto(URL_SEGMENT + 'pages-document--document' + VIEW_MODE); | ||
await page.waitForSelector(ROOT_ELEMENT_SELECTOR); | ||
await expect(page).toHaveScreenshot('DocPage.png'); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
export const URL_SEGMENT = 'http://localhost:6006/iframe.html?args=&id='; | ||
export const ROOT_ELEMENT_SELECTOR = '#storybook-root'; | ||
export const VIEW_MODE = '&viewMode=story'; |