mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: errors in test files
This commit is contained in:
parent
77a0e866dd
commit
cb06e3ce78
2 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import {
|
|||
expectToFind,
|
||||
expectToNotFind,
|
||||
scroll,
|
||||
selectFileTreeItem,
|
||||
selectFileTreeItem
|
||||
} from '../utils'
|
||||
|
||||
describe(`in Gitako project page`, () => {
|
||||
|
|
@ -23,7 +23,7 @@ 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('package.json'))
|
||||
const box = await filesEle.boundingBox()
|
||||
const box = await filesEle?.boundingBox()
|
||||
if (box) {
|
||||
await page.mouse.move(box.x + 40, box.y + 40)
|
||||
await scroll({ totalDistance: 200, duration: 1000 })
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["."],
|
||||
"exclude": ["tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"target": "ES3",
|
||||
"module": "CommonJS",
|
||||
|
|
|
|||
Loading…
Reference in a new issue