2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +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

@ -29,4 +29,7 @@ jobs:
run: yarn run: yarn
- name: Lint - name: Lint
run: yarn lint run: yarn lint
- name: Check Formatting
run: yarn prettier --check .

View File

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

View File

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

View File

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