debian-mirror-gitlab/spec/frontend/helpers/wait_for_text.js
2021-01-30 21:13:32 +05:30

3 lines
146 B
JavaScript

import { findByText } from '@testing-library/dom';
export const waitForText = async (text, container = document) => findByText(container, text);