diff --git a/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts b/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts index e28c87f6c32..5e0eaa18596 100644 --- a/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts +++ b/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts @@ -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'); +}); diff --git a/packages/atomic/src/components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts b/packages/atomic/src/components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts index 71d19516183..dc8d09792d9 100644 --- a/packages/atomic/src/components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts +++ b/packages/atomic/src/components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts @@ -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'); +});