test(e2e): ensure tests are passing
This commit is contained in:
parent
86aad317fe
commit
6e53da76d9
|
@ -9,6 +9,7 @@ beforeEach(async () => {
|
|||
await app.client.waitUntilWindowLoaded();
|
||||
await app.client.waitUntilTextExists('#sidebar', 'Send');
|
||||
await app.client.element('#sidebar a:nth-child(2)').click();
|
||||
await app.client.waitUntilTextExists('#status-pill', 'SYNCED');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
|
|
@ -14,6 +14,6 @@ afterAll(() => app.stop());
|
|||
|
||||
describe('Status Pill', () => {
|
||||
test('should show status pill in the header', async () => expect(
|
||||
app.client.waitUntilTextExists('#status-pill', '50.00%').getText('#status-pill'),
|
||||
).resolves.toEqual(expect.stringContaining('50.00%')));
|
||||
app.client.waitUntilTextExists('#status-pill', 'SYNCED').getText('#status-pill'),
|
||||
).resolves.toEqual(expect.stringContaining('SYNCED')));
|
||||
});
|
||||
|
|
|
@ -24,7 +24,7 @@ const handler = (server) => {
|
|||
sleep(1500).then(() => res.send({ result: { version: 1.0 } }));
|
||||
break;
|
||||
case 'getblockchaininfo':
|
||||
return res.send({ result: { verificationprogress: 0.5 } });
|
||||
return res.send({ result: { verificationprogress: 1 } });
|
||||
case 'z_gettotalbalance':
|
||||
return res.send({
|
||||
result: { transparent: 2.5, private: 3.5, total: 6 },
|
||||
|
|
Loading…
Reference in New Issue