insomnia/packages/insomnia-smoke-test/modules/onboarding.js

27 lines
593 B
JavaScript
Raw Normal View History

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,
};