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

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