Files
iptvnator/e2e/main.e2e.ts
T
2022-01-03 21:45:09 +01:00

27 lines
693 B
TypeScript

import { expect } from 'chai';
import { SpectronClient } from 'spectron';
import commonSetup from './common-setup';
describe('iptvnator 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');
});
});