mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
30 lines
754 B
JavaScript
30 lines
754 B
JavaScript
import * as onboarding from '../modules/onboarding';
|
|
import * as client from '../modules/client';
|
|
import * as home from '../modules/home';
|
|
|
|
import { launchDesigner, stop } from '../modules/application';
|
|
|
|
describe('Application launch', function() {
|
|
jest.setTimeout(50000);
|
|
let app = null;
|
|
|
|
beforeEach(async () => {
|
|
app = await launchDesigner();
|
|
});
|
|
|
|
afterEach(async () => {
|
|
await stop(app);
|
|
});
|
|
|
|
it('can reset to and proceed through onboarding flow', async () => {
|
|
await client.correctlyLaunched(app);
|
|
await client.resetToOnboarding(app);
|
|
|
|
await onboarding.welcomeMessageShown(app);
|
|
await onboarding.clickDontShare(app);
|
|
await onboarding.clickSkipImport(app);
|
|
|
|
await home.documentListingShown(app);
|
|
});
|
|
});
|