Files
iptvnator/e2e/main.e2e.ts
T
2021-01-14 22:25:25 +01:00

27 lines
700 B
TypeScript

import { expect } from 'chai';
import { SpectronClient } from 'spectron';
import commonSetup from './common-setup';
describe('angular-electron App', function () {
commonSetup.apply(this);
let client: SpectronClient;
beforeEach(function () {
client = this.app.client;
});
it('creates initial windows', async function () {
const count = await client.getWindowCount();
expect(count).to.equal(2);
});
it('should contain name of the app', async function () {
this.app.client.windowByIndex(1);
const elem = await client.$('.title');
const text = await elem.getText();
expect(text).to.equal('IPTVnator');
});
});