Skip to content

Commit

Permalink
skipping mouse event tests on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dpitcock committed Sep 10, 2024
1 parent e39c41c commit ba2239f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app-layout/__integ__/app-layout-toolbar-tooltips.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import visualRefreshStyles from '../../../lib/components/app-layout/visual-refre
import toolbarStyles from '../../../lib/components/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js';
import tooltipStyles from '../../../lib/components/internal/components/tooltip/styles.selectors.js';

const testIf = (condition: boolean) => (condition ? test : test.skip);
const wrapper = createWrapper().findAppLayout();

interface SetupTestOptions {
Expand Down Expand Up @@ -96,7 +97,7 @@ describe.each(['visual-refresh', 'visual-refresh-toolbar'] as const)('%s', theme
const drawersTriggerContainerClassKey = `drawers-${size === 'desktop' ? 'desktop' : 'mobile'}-triggers-container`;
const drawerIdsToTest = size === 'mobile' ? mobileDrawerTriggerIds : toolbarDrawerIds;

test(
testIf(size === 'desktop')(
'Shows tooltip correctly for mouse interactions',
setupTest({ theme, size }, async page => {
await expect(page.getElementsCount(`.${tooltipStyles.root}`)).resolves.toBe(0);
Expand Down

0 comments on commit ba2239f

Please sign in to comment.