mirror of
https://github.com/aphrody-labs/base-ui.git
synced 2026-10-14 13:19:31 +00:00
12 lines
305 B
TypeScript
12 lines
305 B
TypeScript
import { expect } from 'vitest';
|
|
import { waitFor } from '@mui/internal-test-utils';
|
|
|
|
export async function waitForPositioned(positioner: HTMLElement) {
|
|
await waitFor(() => {
|
|
expect(positioner.style.opacity).not.toBe('0');
|
|
});
|
|
await waitFor(() => {
|
|
expect(positioner).toBeVisible();
|
|
});
|
|
}
|