insomnia/packages/insomnia-smoke-test/modules/onboarding.js
2020-08-25 10:49:29 +12:00

27 lines
593 B
JavaScript

const welcomeMessageShown = async app => {
await app.client.waitUntilTextExists(
'.onboarding__content__header h1',
'Welcome to Insomnia Designer',
);
};
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());
};
module.exports = {
welcomeMessageShown,
clickDontShare,
clickSkipImport,
};