Skip to content

Commit

Permalink
fix: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus committed Nov 13, 2023
1 parent 52438ca commit 3703033
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions playwright/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const config: PlaywrightTestConfig = {
reporter,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
viewport: {
width: 1200,
height: 900,
},
testIdAttribute: 'data-qa',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Button/__tests__/Button.visual.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.describe('Button', () => {
await expect(component).toHaveScreenshot();
});

test('should render icon in Button.Icon', async ({mount}) => {
test('should render icon in Button-Icon', async ({mount}) => {
const component = await mount(<ButtonIcon />);

await expect(component).toHaveScreenshot();
Expand Down

0 comments on commit 3703033

Please sign in to comment.