mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
107a37fb92
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
8 lines
249 B
TypeScript
8 lines
249 B
TypeScript
import { Application } from 'spectron';
|
|
|
|
export const waitUntilTextDisappears = async (app: Application, element: WebdriverIO.Element, text: string) => {
|
|
await app.client.waitUntil(async () =>
|
|
!(await element.getText()).includes(text)
|
|
);
|
|
};
|