insomnia/packages/insomnia-smoke-test/modules/text.ts
Opender Singh 107a37fb92
Add smoke test for XML response and filter (#4085)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-10-18 00:49:30 +00:00

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