mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
|
import { Application } from 'spectron';
|
||
|
|
||
|
export const pageDisplayed = async (app: Application) => {
|
||
|
await app.client.react$('WrapperDesign').then(e => e.waitForDisplayed());
|
||
|
};
|
||
|
|
||
|
export const goToActivity = async (app: Application, activity: 'spec' | 'debug' | 'test' = 'spec') => {
|
||
|
// NOTE: We shouldn't need to click the span.
|
||
|
// TODO: Make the radio button group in the header keyboard accessible.
|
||
|
const debugRadioInput = await app.client.$(`input[name="activity-toggle"][value=${activity}] ~ span`);
|
||
|
|
||
|
await debugRadioInput.click();
|
||
|
};
|