Skip to content

Commit

Permalink
test(ui): increase timeout to 60s
Browse files Browse the repository at this point in the history
- add formatting check to lint.yml
  • Loading branch information
18alantom committed Jun 27, 2023
1 parent 64671e5 commit 711b4d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ jobs:
run: yarn

- name: Lint
run: yarn lint
run: yarn lint

- name: Check Formatting
run: yarn prettier --check .
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
**/types.ts
**/types.ts
**/dist_electron
**/dummy/*.json
**/fixtures/countryInfo.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion uitest/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 711b4d9

Please sign in to comment.