Skip to content

Commit

Permalink
Remove 'force' on width selection cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed May 22, 2024
1 parent 9e812a9 commit 03c38a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export const formatCode = () =>

export const selectWidthPreference = (width: number) => {
cy.findByRole('button', { name: 'Configure visible frames' }).click();
// Force needed as the checkbox is covered by 'Checkmark' svg
cy.findByRole('checkbox', { name: `${width}` }).click({ force: true });
cy.findByRole('checkbox', { name: `${width}` }).click();
};

export const togglePreviewPanel = () =>
Expand Down
1 change: 1 addition & 0 deletions src/Playroom/FramesPanel/FramesPanel.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const fakeCheckbox = style([
borderRadius: 'large',
marginRight: 'large',
padding: checkboxPadding,
pointerEvents: 'none',
}),
{
flexGrow: 0,
Expand Down

0 comments on commit 03c38a4

Please sign in to comment.