2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

test(ui): increase timeout to 60s

- add formatting check to lint.yml
This commit is contained in:
18alantom 2023-06-27 13:09:24 +05:30
parent 64671e5625
commit 711b4d9b20
4 changed files with 11 additions and 4 deletions

View File

@ -30,3 +30,6 @@ jobs:
- name: Lint
run: yarn lint
- name: Check Formatting
run: yarn prettier --check .

View File

@ -1 +1,4 @@
**/types.ts
**/dist_electron
**/dummy/*.json
**/fixtures/countryInfo.json

View File

@ -16,7 +16,8 @@
"script:profile": "scripts/profile.sh",
"test": "scripts/test.sh",
"uitest": "node uitest/index.mjs | tap-spec",
"lint": "eslint . --ext ts,vue"
"lint": "eslint . --ext ts,vue",
"format": "prettier --write ."
},
"dependencies": {
"@codemirror/autocomplete": "^6.4.2",

View File

@ -10,7 +10,7 @@ const appSourcePath = path.join(root, 'dist_electron', 'build', 'main.js');
(async function run() {
const electronApp = await _electron.launch({ args: [appSourcePath] });
const window = await electronApp.firstWindow();
window.setDefaultTimeout(10_000);
window.setDefaultTimeout(60_000);
test('load app', async (t) => {
t.equal(await window.title(), 'Frappe Books', 'title matches');