mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-14 11:33:51 +00:00
Run tests in a headless browser with vitest browser mode and playwright
This commit is contained in:
@@ -20,7 +20,13 @@ describe('<ServersDropdown />', () => {
|
||||
</MemoryRouter>,
|
||||
);
|
||||
|
||||
it('passes a11y checks', () => checkAccessibility(setUp()));
|
||||
it('passes a11y checks', async () => {
|
||||
const { user, ...rest } = setUp();
|
||||
// Open menu
|
||||
await user.click(screen.getByText('Servers'));
|
||||
|
||||
return checkAccessibility(rest);
|
||||
});
|
||||
|
||||
it('contains the list of servers and the "mange servers" button', async () => {
|
||||
const { user } = setUp();
|
||||
|
||||
Reference in New Issue
Block a user