test(console): add console view tests

This commit is contained in:
George Lima 2019-01-23 14:04:29 -03:00
parent b56931734d
commit d16fdd2838
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// @flow
import { getApp } from '../setup/utils';
const app = getApp();
beforeAll(async () => {
await app.start();
await app.client.waitUntilWindowLoaded();
await app.client.waitUntilTextExists('#sidebar', 'Console', 120000);
});
afterAll(() => app.stop());
describe('Console', () => {
it('should load "Console Page"', async () => {
await app.client.element('#sidebar a:nth-child(6)').click();
expect(app.client.getText('#header p:first-child')).resolves.toEqual(
'Console',
);
expect(
app.client.element('#console-wrapper img').getAttribute('src'),
).resolves.toEqual(expect.stringContaining('/assets/console_zcash.png'));
});
});