zepio/__tests__/e2e/status-pill.test.js

20 lines
516 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');
});
afterAll(() => app.stop());
describe('Status Pill', () => {
test('should show status pill in the header', async () => expect(
app.client.waitUntilTextExists('#status-pill', 'READY', 30000).getText('#status-pill'),
).resolves.toEqual(expect.stringContaining('READY')));
});