gitlab-org--gitlab-foss/spec/frontend/helpers/wait_for_text.js

4 lines
146 B
JavaScript
Raw Normal View History

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