mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
27 lines
700 B
TypeScript
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');
|
|
});
|
|
});
|