Skip to content

Commit

Permalink
[dropdown-menu] added snapshot test for white box-shadows in List com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
ilyabrower committed Jul 12, 2024
1 parent dc98520 commit dcbe532
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions semcore/dropdown-menu/__tests__/dropdown-menu.browser-test.tsx
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();
});
});
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.
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.

0 comments on commit dcbe532

Please sign in to comment.