mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
27 lines
593 B
JavaScript
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,
|
|
};
|