@@ -5,16 +5,16 @@ test("test", async ({ page }) => {
55 timeout : 20 * 60 * 1000 ,
66 } ) ; // Increase timeout to 20 minutes
77 // Find the calendar element
8- const calendar = page . locator ( ".calendar" ) . nth ( 0 ) ;
8+ const calendar = page . locator ( ".dx- calendar" ) . nth ( 0 ) ;
99 // Find the calendar-nav-prev button
10- const prevButton = calendar . locator ( ".calendar-nav-prev" ) ;
10+ const prevButton = calendar . locator ( ".dx- calendar-nav-prev" ) ;
1111 // Find the calendar-nav-next button
12- const nextButton = calendar . locator ( ".calendar-nav-next" ) ;
12+ const nextButton = calendar . locator ( ".dx- calendar-nav-next" ) ;
1313
1414 // Assert the calendar is displayed
1515 await expect ( calendar ) . toBeVisible ( { timeout : 30000 } ) ;
1616 // Assert the current month is displayed
17- const currentMonth = calendar . locator ( ".calendar-month-select" ) ;
17+ const currentMonth = calendar . locator ( ".dx- calendar-month-select" ) ;
1818 let currentMonthText = await currentMonth . inputValue ( ) ;
1919
2020 // Click the previous button to go to the previous month
@@ -31,7 +31,7 @@ test("test", async ({ page }) => {
3131 // Move focus to the calendar with tab
3232 await page . keyboard . press ( "Tab" ) ;
3333 const focusedDay = calendar . locator (
34- '.calendar-grid-cell[data-month="current"]:focus'
34+ '.dx- calendar-grid-cell[data-month="current"]:focus'
3535 ) ;
3636 // Assert a day is focused
3737 const firstDay = focusedDay . first ( ) ;
@@ -83,9 +83,9 @@ test("year navigation by moving 52 weeks with arrow keys", async ({ page }) => {
8383 } ) ;
8484
8585 // Find the calendar element
86- const calendar = page . locator ( ".calendar" ) . nth ( 0 ) ;
87- const monthSelect = calendar . locator ( ".calendar-month-select" ) ;
88- const yearSelect = calendar . locator ( ".calendar-year-select" ) ;
86+ const calendar = page . locator ( ".dx- calendar" ) . nth ( 0 ) ;
87+ const monthSelect = calendar . locator ( ".dx- calendar-month-select" ) ;
88+ const yearSelect = calendar . locator ( ".dx- calendar-year-select" ) ;
8989
9090 // Assert the calendar is displayed
9191 await expect ( calendar ) . toBeVisible ( { timeout : 30000 } ) ;
@@ -110,7 +110,7 @@ test("year navigation by moving 52 weeks with arrow keys", async ({ page }) => {
110110
111111 // Move focus to the calendar manually
112112 const firstDay = calendar
113- . locator ( '.calendar-grid-cell[data-month="current"]' )
113+ . locator ( '.dx- calendar-grid-cell[data-month="current"]' )
114114 . first ( ) ;
115115 await firstDay . focus ( ) ;
116116
@@ -148,9 +148,9 @@ test("shift + arrow keys navigation", async ({ page }) => {
148148 } ) ;
149149
150150 // Find the calendar element
151- const calendar = page . locator ( ".calendar" ) . nth ( 0 ) ;
152- const monthSelect = calendar . locator ( ".calendar-month-select" ) ;
153- const yearSelect = calendar . locator ( ".calendar-year-select" ) ;
151+ const calendar = page . locator ( ".dx- calendar" ) . nth ( 0 ) ;
152+ const monthSelect = calendar . locator ( ".dx- calendar-month-select" ) ;
153+ const yearSelect = calendar . locator ( ".dx- calendar-year-select" ) ;
154154
155155 // Assert the calendar is displayed
156156 await expect ( calendar ) . toBeVisible ( { timeout : 30000 } ) ;
@@ -163,7 +163,7 @@ test("shift + arrow keys navigation", async ({ page }) => {
163163
164164 // Move focus to the calendar
165165 const firstDay = calendar
166- . locator ( '.calendar-grid-cell[data-month="current"]' )
166+ . locator ( '.dx- calendar-grid-cell[data-month="current"]' )
167167 . first ( ) ;
168168 await firstDay . focus ( ) ;
169169
@@ -199,9 +199,9 @@ async function testArrowKeyNavigation(
199199 } ) ;
200200
201201 // Find the calendar element
202- const calendar = page . locator ( ".calendar" ) . nth ( 0 ) ;
203- const monthSelect = calendar . locator ( ".calendar-month-select" ) ;
204- const yearSelect = calendar . locator ( ".calendar-year-select" ) ;
202+ const calendar = page . locator ( ".dx- calendar" ) . nth ( 0 ) ;
203+ const monthSelect = calendar . locator ( ".dx- calendar-month-select" ) ;
204+ const yearSelect = calendar . locator ( ".dx- calendar-year-select" ) ;
205205
206206 // Assert the calendar is displayed
207207 await expect ( calendar ) . toBeVisible ( { timeout : 30000 } ) ;
@@ -217,13 +217,13 @@ async function testArrowKeyNavigation(
217217
218218 // Move focus to the starting day of the current month
219219 const startDay = calendar
220- . locator ( '.calendar-grid-cell[data-month="current"]' )
220+ . locator ( '.dx- calendar-grid-cell[data-month="current"]' )
221221 [ startPosition ] ( ) ;
222222 await startDay . focus ( ) ;
223223
224224 // Get the focused day selector
225225 const focusedDay = calendar . locator (
226- '.calendar-grid-cell[data-month="current"]:focus'
226+ '.dx- calendar-grid-cell[data-month="current"]:focus'
227227 ) ;
228228
229229 // Array to track all days visited
0 commit comments