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:
parent
64671e5625
commit
711b4d9b20
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@ -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 .
|
||||||
|
@ -1 +1,4 @@
|
|||||||
**/types.ts
|
**/types.ts
|
||||||
|
**/dist_electron
|
||||||
|
**/dummy/*.json
|
||||||
|
**/fixtures/countryInfo.json
|
@ -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",
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user