diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index b5b3d12673..9658b0fd55 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -121,10 +121,10 @@ jobs: displayName: Lint - script: make test displayName: Run tests - # - script: sudo apt-get update && sudo apt-get install libgconf-2-4 -y - # displayName: Install integration test dependencies - # - script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux - # displayName: Run integration tests + - script: sudo apt-get update && sudo apt-get install libgconf-2-4 -y + displayName: Install integration test dependencies + - script: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' make integration-linux + displayName: Run integration tests - bash: | sudo chown root:root / sudo apt-get update && sudo apt-get install -y snapd diff --git a/spec/integration/specs/app_spec.ts b/spec/integration/specs/app_spec.ts index bd8860d194..c2c4be18fe 100644 --- a/spec/integration/specs/app_spec.ts +++ b/spec/integration/specs/app_spec.ts @@ -3,14 +3,15 @@ import * as util from "../helpers/utils" describe("app start", () => { let app: Application - beforeEach(() => { + beforeEach(async () => { app = util.setup() - return app.start() + await app.start() + const windowCount = await app.client.getWindowCount() + await app.client.windowByIndex(windowCount - 1) + await app.client.waitUntilWindowLoaded() }, 20000) it('starts with whats new flow', async () => { - await app.client.windowByIndex(1) - await app.client.waitUntilWindowLoaded() await app.client.waitUntilTextExists("h1", "What's new") await app.client.click("button.btn-primary") await app.client.waitUntilTextExists("h1", "Welcome")