@@ -8,27 +8,32 @@ describe("Events tests", () => {
88 becomeUser,
99 } ) => {
1010 await becomeUser ( page ) ;
11- await page . locator ( 'a' ) . filter ( { hasText : 'Events' } ) . click ( ) ;
12- await expect ( page . getByRole ( 'heading' ) ) . toContainText ( 'Core Management Service (NonProd)' ) ;
13- await expect ( page . getByRole ( 'button' , { name : 'New Calendar Event' } ) ) . toBeVisible ( ) ;
14- await expect ( page . getByRole ( 'button' , { name : 'Show Previous Events' } ) ) . toBeVisible ( ) ;
11+ await page . locator ( "a" ) . filter ( { hasText : "Events" } ) . click ( ) ;
12+ await expect ( page . getByRole ( "heading" ) ) . toContainText (
13+ "Core Management Service (NonProd)" ,
14+ ) ;
15+ await expect (
16+ page . getByRole ( "button" , { name : "New Calendar Event" } ) ,
17+ ) . toBeVisible ( ) ;
18+ await expect (
19+ page . getByRole ( "button" , { name : "Show Previous Events" } ) ,
20+ ) . toBeVisible ( ) ;
1521
16- const table = page . getByTestId ( ' events-table' ) ;
22+ const table = page . getByTestId ( " events-table" ) ;
1723 await expect ( table ) . toBeVisible ( ) ;
1824
19- const rows = await table . locator ( ' tbody tr' ) . all ( ) ;
25+ const rows = await table . locator ( " tbody tr" ) . all ( ) ;
2026 const expectedTableData = await getUpcomingEvents ( ) ;
2127
2228 for ( let i = 0 ; i < rows . length ; i ++ ) {
2329 const row = rows [ i ] ;
2430 const expectedData = expectedTableData [ i ] ;
25-
26- const title = await row . locator ( 'td:nth-child(1)' ) . innerText ( ) ;
27- const location = await row . locator ( 'td:nth-child(4)' ) . innerText ( ) ;
28- const description = await row . locator ( 'td:nth-child(5)' ) . innerText ( ) ;
29- const host = await row . locator ( 'td:nth-child(6)' ) . innerText ( ) ;
30- const featured = await row . locator ( 'td:nth-child(7)' ) . innerText ( ) ;
31- const repeats = await row . locator ( 'td:nth-child(8)' ) . innerText ( ) ;
31+ const title = await row . locator ( "td:nth-child(1)" ) . innerText ( ) ;
32+ const location = await row . locator ( "td:nth-child(4)" ) . innerText ( ) ;
33+ const description = await row . locator ( "td:nth-child(5)" ) . innerText ( ) ;
34+ const host = await row . locator ( "td:nth-child(6)" ) . innerText ( ) ;
35+ const featured = await row . locator ( "td:nth-child(7)" ) . innerText ( ) ;
36+ const repeats = await row . locator ( "td:nth-child(8)" ) . innerText ( ) ;
3237
3338 expect ( title ) . toEqual ( expectedData . title ) ;
3439 expect ( location ) . toEqual ( expectedData . location ) ;
0 commit comments