debian-mirror-gitlab/spec/frontend/__helpers__/wait_for_text.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
146 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import { findByText } from '@testing-library/dom';
export const waitForText = async (text, container = document) => findByText(container, text);