@@ -10,6 +10,7 @@ test.describe('ER status', () => {
1010 await password . fill ( 'abcd1234' ) ;
1111 await password . press ( 'Enter' ) ;
1212 await expect ( appPage ) . toHaveURL ( '/er' ) ;
13+ await appPage . reload ( ) ;
1314 await appPage . getByRole ( 'button' , { name : / h o s p i t a l / i } ) . click ( ) ;
1415 await expect ( appPage . getByText ( / a v a i l a b l e b e d s / i) ) . toBeVisible ( ) ;
1516 await expect ( appPage . getByText ( / e r c o n d i t i o n s / i) ) . toBeVisible ( ) ;
@@ -23,20 +24,16 @@ test.describe('ER status', () => {
2324 test ( 'EMS checks hospital status' , async ( { context } ) => {
2425 const appPage = await context . newPage ( ) ;
2526 await appPage . goto ( '/' ) ;
26- await appPage . getByLabel ( 'Email' ) . fill ( '[email protected] ' ) ; 27+ await appPage . getByLabel ( 'Email' ) . fill ( 'op.ems.1 @c4sf.me' ) ;
2728 const password = appPage . getByLabel ( 'Password' ) ;
2829 await password . fill ( 'abcd1234' ) ;
2930 await password . press ( 'Enter' ) ;
3031 await expect ( appPage ) . toHaveURL ( '/ems' ) ;
3132 await appPage . getByRole ( 'button' , { name : / h o s p i t a l i n f o / i } ) . click ( ) ;
32- // await expect(appPage.locator('.hospitalstatusrow_container')
33- // .filter({ hasText: /ucsf parnassus/i })
34- // .filter({ has: appPage.locator('.hospitalstatusrow__notes').filter({ hasText: 'scanner fixed' })})).toBeVisible();
35- const row = appPage . locator ( '.hospitalstatusrow_container' ) . filter ( { hasText : / u c s f p a r n a s s u s / i } ) ;
36-
37- // await expect(row.locator('.hospitalstatusrow__data', { hasText: '5' })).toBeVisible();
38- // await expect(row.locator('.hospitalstatusrow__data', { hasText: '8' })).toBeVisible();
39- await expect ( row . locator ( '.hospitalstatusrow__notes' ) . filter ( { hasText : 'scanner broke' } ) ) . toBeVisible ( ) ;
33+ const ucsfRow = appPage . locator ( '.hospitalstatusrow_container' ) . filter ( { hasText : / u c s f p a r n a s s u s / i } ) ;
34+ await expect ( ucsfRow . getByText ( '5' ) ) . toBeVisible ( ) ;
35+ await expect ( ucsfRow . getByText ( '8' ) ) . toBeVisible ( ) ;
36+ await expect ( ucsfRow . getByText ( 'scanner broke' ) ) . toBeVisible ( ) ;
4037 await context . close ( ) ;
4138 } ) ;
4239
@@ -48,6 +45,7 @@ test.describe('ER status', () => {
4845 await password . fill ( 'abcd1234' ) ;
4946 await password . press ( 'Enter' ) ;
5047 await expect ( appPage ) . toHaveURL ( '/er' ) ;
48+ await appPage . reload ( ) ;
5149 await appPage . getByRole ( 'button' , { name : / h o s p i t a l / i } ) . click ( ) ;
5250 await expect ( appPage . getByText ( / a v a i l a b l e b e d s / i) ) . toBeVisible ( ) ;
5351 await expect ( appPage . getByText ( / e r c o n d i t i o n s / i) ) . toBeVisible ( ) ;
@@ -61,7 +59,7 @@ test.describe('ER status', () => {
6159 test ( 'EMS checks hospital status after reset' , async ( { context } ) => {
6260 const appPage = await context . newPage ( ) ;
6361 await appPage . goto ( '/' ) ;
64- await appPage . getByLabel ( 'Email' ) . fill ( '[email protected] ' ) ; 62+ await appPage . getByLabel ( 'Email' ) . fill ( 'op.ems.1 @c4sf.me' ) ;
6563 const password = appPage . getByLabel ( 'Password' ) ;
6664 await password . fill ( 'abcd1234' ) ;
6765 await password . press ( 'Enter' ) ;
0 commit comments