test: add jest retryTimes

This commit is contained in:
EnixCoda 2022-11-07 22:14:38 +08:00
parent 7600ba43fd
commit 8fdf1cbb74
5 changed files with 14 additions and 7 deletions

View file

@ -1,5 +1,7 @@
import { expectToFind, expectToNotFind, sleep, waitForRedirect } from '../../utils'
jest.retryTimes(3)
describe(`in Gitako project page`, () => {
beforeAll(() => page.goto('https://github.com/EnixCoda/Gitako/commits/develop'))

View file

@ -1,8 +1,6 @@
import {
expectToFind,
expectToNotFind,
sleep, waitForRedirect
} from '../../utils'
import { expectToFind, expectToNotFind, sleep, waitForRedirect } from '../../utils'
jest.retryTimes(3)
describe(`in Gitako project page`, () => {
beforeAll(() => page.goto('https://github.com/EnixCoda/Gitako/tree/develop/src'))

View file

@ -3,9 +3,12 @@ import {
expandFloatModeSidebar,
patientClick,
selectFileTreeItem,
sleep, waitForRedirect
sleep,
waitForRedirect,
} from '../../utils'
jest.retryTimes(3)
describe(`in Gitako project page`, () => {
beforeAll(() => page.goto('https://github.com/EnixCoda/Gitako/tree/develop/src'))

View file

@ -8,6 +8,8 @@ import {
waitForRedirect,
} from '../../utils'
jest.retryTimes(3)
describe(`in Gitako project page`, () => {
beforeAll(() => page.goto('https://github.com/EnixCoda/Gitako/tree/test/multiple-changes'))

View file

@ -3,9 +3,11 @@ import {
expectToFind,
expectToNotFind,
scroll,
selectFileTreeItem
selectFileTreeItem,
} from '../../utils'
jest.retryTimes(3)
describe(`in Gitako project page`, () => {
beforeAll(() =>
page.goto('https://github.com/EnixCoda/Gitako/tree/test/200-changed-files-200-lines-each'),