Skip to content

Commit

Permalink
Fix naming + coverage of navigation board tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yo35 committed Apr 22, 2024
1 parent 225a11a commit 6201521
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion test/13_navigation_board_graphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ describeWithBrowser('Navigation board graphic', browserContext => {
itChecksScreenshots(browserContext, '13_navigation_board_graphic/additional_buttons', [
'single button',
'multiple buttons',
'error',
'error 1',
'error 2',
]);

function itCheckClickButton(itemIndex, label, buttons) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ testApp([ /* eslint-disable react/jsx-key */
{ iconPath: 'M 16 10 L 22 21 H 10 Z', tooltip: 'Button C', enabled: false, onClick: () => setSandbox('Button C clicked') },
]} />,
<NavigationBoard game={pgn} additionalButtons={
/* eslint-disable @typescript-eslint/no-explicit-any */ 'not a button' as any /* eslint-enable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-explicit-any */ 'not a button nor a spacer' as any /* eslint-enable @typescript-eslint/no-explicit-any */
} />,
<NavigationBoard game={pgn} additionalButtons={[
{ iconPath: 'M 11 11 H 21 V 21 H 11 Z' },
/* eslint-disable @typescript-eslint/no-explicit-any */ 'not a button nor a spacer' as any /* eslint-enable @typescript-eslint/no-explicit-any */,
]} />,
]); /* eslint-enable react/jsx-key */

0 comments on commit 6201521

Please sign in to comment.