test(e2e): ensure tests are passing

This commit is contained in:
George Lima 2019-04-11 18:05:09 -03:00
parent 86aad317fe
commit 6e53da76d9
3 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ beforeEach(async () => {
await app.client.waitUntilWindowLoaded(); await app.client.waitUntilWindowLoaded();
await app.client.waitUntilTextExists('#sidebar', 'Send'); await app.client.waitUntilTextExists('#sidebar', 'Send');
await app.client.element('#sidebar a:nth-child(2)').click(); await app.client.element('#sidebar a:nth-child(2)').click();
await app.client.waitUntilTextExists('#status-pill', 'SYNCED');
}); });
afterEach(async () => { afterEach(async () => {

View File

@ -14,6 +14,6 @@ afterAll(() => app.stop());
describe('Status Pill', () => { describe('Status Pill', () => {
test('should show status pill in the header', async () => expect( test('should show status pill in the header', async () => expect(
app.client.waitUntilTextExists('#status-pill', '50.00%').getText('#status-pill'), app.client.waitUntilTextExists('#status-pill', 'SYNCED').getText('#status-pill'),
).resolves.toEqual(expect.stringContaining('50.00%'))); ).resolves.toEqual(expect.stringContaining('SYNCED')));
}); });

View File

@ -24,7 +24,7 @@ const handler = (server) => {
sleep(1500).then(() => res.send({ result: { version: 1.0 } })); sleep(1500).then(() => res.send({ result: { version: 1.0 } }));
break; break;
case 'getblockchaininfo': case 'getblockchaininfo':
return res.send({ result: { verificationprogress: 0.5 } }); return res.send({ result: { verificationprogress: 1 } });
case 'z_gettotalbalance': case 'z_gettotalbalance':
return res.send({ return res.send({
result: { transparent: 2.5, private: 3.5, total: 6 }, result: { transparent: 2.5, private: 3.5, total: 6 },