-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dropdown-menu] added snapshot test for white box-shadows in List com…
…ponent
- Loading branch information
1 parent
dc98520
commit dcbe532
Showing
7 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
semcore/dropdown-menu/__tests__/dropdown-menu.browser-test.tsx
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 { expect, test } from '@semcore/testing-utils/playwright'; | ||
import { e2eStandToHtml } from '@semcore/testing-utils/e2e-stand'; | ||
|
||
test.describe('Dropdown-menu', () => { | ||
test('Should render white shadows in list', async ({ page }) => { | ||
const standPath = 'website/docs/components/dropdown-menu/examples/the_second_method.tsx'; | ||
const htmlContent = await e2eStandToHtml(standPath, 'en'); | ||
|
||
await page.setContent(htmlContent); | ||
|
||
const ddMenu = await page.locator('#dropdown-menu-children-items'); | ||
|
||
await ddMenu.click(); | ||
await page.keyboard.press('ArrowDown'); | ||
await page.keyboard.press('ArrowDown'); | ||
await page.keyboard.press('ArrowDown'); | ||
await page.keyboard.press('ArrowDown'); | ||
await expect(page).toHaveScreenshot(); | ||
|
||
await page.keyboard.press('ArrowDown'); | ||
await expect(page).toHaveScreenshot(); | ||
}); | ||
}); |
Binary file added
BIN
+14.9 KB
...napshots/Dropdown-menu-Should-render-white-shadows-in-list-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.8 KB
...snapshots/Dropdown-menu-Should-render-white-shadows-in-list-1-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.6 KB
...-snapshots/Dropdown-menu-Should-render-white-shadows-in-list-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.8 KB
...napshots/Dropdown-menu-Should-render-white-shadows-in-list-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.6 KB
...snapshots/Dropdown-menu-Should-render-white-shadows-in-list-2-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.5 KB
...-snapshots/Dropdown-menu-Should-render-white-shadows-in-list-2-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.