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