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: [
"build/*.ts",
"src/**/*.ts",
"spec/**/*.ts"
"integration/**/*.ts"
],
parser: "@typescript-eslint/parser",
extends: [

View File

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

View File

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

View File

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