mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
test: add jest retryTimes
This commit is contained in:
parent
7600ba43fd
commit
8fdf1cbb74
5 changed files with 14 additions and 7 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue