Skip to content

Commit

Permalink
Rename test file
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Apr 10, 2024
1 parent 3d4a609 commit bf0d93d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';

export default function BasicDesktopDatePickerV6() {
export default function BasicClearableDesktopDatePicker() {
return (
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DesktopDatePicker
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function sleep(timeoutMS: number): Promise<void> {
// A simplified version of https://github.com/testing-library/dom-testing-library/blob/main/src/wait-for.js
function waitFor(callback: () => Promise<void>): Promise<void> {
return new Promise((resolve, reject) => {
let intervalId: NodeJS.Timer | null = null;
let timeoutId: NodeJS.Timer | null = null;
let intervalId: NodeJS.Timeout | null = null;
let timeoutId: NodeJS.Timeout | null = null;
let lastError: any = null;

function handleTimeout() {
Expand Down Expand Up @@ -536,7 +536,7 @@ async function initializeEnvironment(

// assertion for: https://github.com/mui/mui-x/issues/12652
it('should allow field editing after opening and closing the picker', async () => {
await renderFixture('DatePicker/BasicDesktopDatePickerV6');
await renderFixture('DatePicker/BasicClearableDesktopDatePicker');
// open picker
await page.getByRole('button').click();
await page.waitForSelector('[role="dialog"]', { state: 'attached' });
Expand Down Expand Up @@ -641,7 +641,7 @@ async function initializeEnvironment(
});

it('should focus the first field section after clearing a value in v6 input', async () => {
await renderFixture('DatePicker/BasicDesktopDatePickerV6');
await renderFixture('DatePicker/BasicClearableDesktopDatePicker');

await page.getByRole('textbox').fill('2');
await page.getByRole('button', { name: 'Clear value' }).click();
Expand Down

0 comments on commit bf0d93d

Please sign in to comment.