mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
5fa8f0069d
* remove babel and add configs * add ts-node * lint scripts * eslint override * remove type module * add expect errors * update js files to ts * fix electron import * remove errors * update readme * add build step * typesync * add eslintignore
27 lines
672 B
TypeScript
27 lines
672 B
TypeScript
const analyticsMessageShown = async app => {
|
|
await app.client.waitUntilTextExists(
|
|
'.onboarding__content__body p strong',
|
|
'Share Usage Analytics with Kong Inc',
|
|
);
|
|
};
|
|
|
|
const clickDontShare = async app => {
|
|
await app.client
|
|
.$('.onboarding__content__body')
|
|
.then(e => e.$('button=Don\'t share usage analytics'))
|
|
.then(e => e.click());
|
|
};
|
|
|
|
const clickSkipImport = async app => {
|
|
await app.client
|
|
.$('.onboarding__content__body')
|
|
.then(e => e.$('button=Skip'))
|
|
.then(e => e.click());
|
|
};
|
|
|
|
export const skipOnboardingFlow = async app => {
|
|
await analyticsMessageShown(app);
|
|
await clickDontShare(app);
|
|
await clickSkipImport(app);
|
|
};
|