mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
test: update test due to test data updates
This commit is contained in:
parent
2a34c17c85
commit
2dd3988967
1 changed files with 2 additions and 2 deletions
|
|
@ -22,11 +22,11 @@ describe(`in Gitako project page`, () => {
|
|||
|
||||
const filesEle = await page.waitForSelector('.gitako-side-bar .files')
|
||||
// node of tsconfig.json should NOT be rendered before scroll down
|
||||
await expectToNotFind(selectFileTreeItem('tsconfig.json'))
|
||||
await expectToNotFind(selectFileTreeItem('package.json'))
|
||||
const box = await filesEle.boundingBox()
|
||||
if (box) {
|
||||
await page.mouse.move(box.x + 40, box.y + 40)
|
||||
await scroll({ totalDistance: 100, duration: 1000 })
|
||||
await scroll({ totalDistance: 200, duration: 1000 })
|
||||
|
||||
// node of tsconfig.json should be rendered now
|
||||
await expectToFind(selectFileTreeItem('tsconfig.json'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue