Remove percy and add docs on how to produce the snapshots

This commit is contained in:
Aria Minaei 2023-08-07 15:34:36 +02:00
parent 6d4a060881
commit bdba288ff1
7 changed files with 32 additions and 328 deletions

View file

@ -1,5 +1,4 @@
import {test, expect} from '@playwright/test'
import percySnapshot from '@percy/playwright'
const isMac = process.platform === 'darwin'
@ -43,8 +42,6 @@ test.describe('setting-static-props', () => {
await expect(firstInput).toHaveAttribute('value', '1')
await expect(secondInput).toHaveAttribute('value', '2')
// Our first visual regression test
// @ts-ignore - probably percy uses a different version of playwright
await percySnapshot(page, test.info().titlePath.join('/') + '/After redo')
await expect(page).toHaveScreenshot()
})
})