1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

integration fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-06-26 14:10:30 +03:00
parent 7b9dea4a1d
commit 8569e3b772
4 changed files with 3 additions and 6 deletions

View File

@ -29,7 +29,7 @@ module.exports = {
files: [ files: [
"build/*.ts", "build/*.ts",
"src/**/*.ts", "src/**/*.ts",
"spec/**/*.ts" "integration/**/*.ts"
], ],
parser: "@typescript-eslint/parser", parser: "@typescript-eslint/parser",
extends: [ extends: [

View File

@ -34,10 +34,6 @@ integration-win:
yarn build:win yarn build:win
yarn integration yarn integration
lint:
yarn lint
yarn lint-dashboard
test-app: test-app:
yarn test yarn test

View File

@ -13,7 +13,7 @@ case "darwin":
break break
} }
export function setup() { export function setup(): Application {
return new Application({ return new Application({
// path to electron app // path to electron app
args: [], args: [],

View File

@ -36,6 +36,7 @@ describe("app start", () => {
beforeEach(async () => { beforeEach(async () => {
app = util.setup() app = util.setup()
await app.start() await app.start()
await app.client.waitUntilWindowLoaded()
const windowCount = await app.client.getWindowCount() const windowCount = await app.client.getWindowCount()
await app.client.windowByIndex(windowCount - 1) await app.client.windowByIndex(windowCount - 1)
await app.client.waitUntilWindowLoaded() await app.client.waitUntilWindowLoaded()