21 lines
532 B
JavaScript
21 lines
532 B
JavaScript
|
// @flow
|
||
|
import { getApp } from '../setup/utils';
|
||
|
|
||
|
const app = getApp();
|
||
|
|
||
|
beforeAll(async () => {
|
||
|
await app.start();
|
||
|
await app.client.waitUntilWindowLoaded();
|
||
|
await app.client.waitUntilTextExists('#sidebar', 'Dashboard', 120000);
|
||
|
});
|
||
|
|
||
|
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%')));
|
||
|
});
|