2019-01-23 07:40:18 -08:00
|
|
|
// @flow
|
2019-02-04 20:41:45 -08:00
|
|
|
|
2019-01-23 07:40:18 -08:00
|
|
|
import { getApp } from '../setup/utils';
|
|
|
|
|
|
|
|
const app = getApp();
|
|
|
|
|
|
|
|
beforeAll(async () => {
|
|
|
|
await app.start();
|
|
|
|
await app.client.waitUntilWindowLoaded();
|
2019-01-24 11:23:06 -08:00
|
|
|
await app.client.waitUntilTextExists('#sidebar', 'Dashboard');
|
2019-01-23 07:40:18 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
afterAll(() => app.stop());
|
|
|
|
|
|
|
|
describe('Status Pill', () => {
|
|
|
|
test('should show status pill in the header', async () => expect(
|
2019-01-24 11:23:06 -08:00
|
|
|
app.client.waitUntilTextExists('#status-pill', '50.00%').getText('#status-pill'),
|
2019-01-23 07:40:18 -08:00
|
|
|
).resolves.toEqual(expect.stringContaining('50.00%')));
|
|
|
|
});
|