fix/ spectron e2e test

This commit is contained in:
Maxime GRIS
2021-06-25 17:21:39 +02:00
parent 7d531d1775
commit 742095f132
3 changed files with 8 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ import { SpectronClient } from 'spectron';
import commonSetup from './common-setup';
describe('angular-electron App', () => {
describe('angular-electron App', function() {
commonSetup.apply(this);
@@ -13,12 +13,12 @@ describe('angular-electron App', () => {
client = this.app.client;
});
it('creates initial windows', async () => {
it('creates initial windows', async function() {
const count = await client.getWindowCount();
expect(count).to.equal(1);
});
it('should display message saying App works !', async () => {
it('should display message saying App works !', async function() {
const elem = await client.$('app-home h1');
const text = await elem.getText();
expect(text).to.equal('App works !');