Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprudhomme committed Sep 18, 2024
1 parent 2a024ac commit ad5eef4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,3 +514,10 @@ test.describe('standalone searchbox', () => {
expect(accessibilityResults.violations).toEqual([]);
});
});

test('should have position:relative and z-index:10', async ({searchBox}) => {
await searchBox.load();

await expect(searchBox.hydrated).toHaveCSS('position', 'relative');
await expect(searchBox.hydrated).toHaveCSS('z-index', '10');
});
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,10 @@ test.describe('with minimum-query-length=4', () => {
});
});
});

test('should have position:relative and z-index:10', async ({searchBox}) => {
await searchBox.load();

await expect(searchBox.hydrated).toHaveCSS('position', 'relative');
await expect(searchBox.hydrated).toHaveCSS('z-index', '10');
});

0 comments on commit ad5eef4

Please sign in to comment.