diff --git a/__tests__/e2e/console.test.js b/__tests__/e2e/console.test.js new file mode 100644 index 0000000..32e4c2a --- /dev/null +++ b/__tests__/e2e/console.test.js @@ -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')); + }); +});