File tree Expand file tree Collapse file tree
packages/studio-web/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ export const testMakeAReadAlong = async (page: Page) => {
3838
3939 //wait for edit page to load
4040 await expect ( async ( ) => {
41- await expect ( page . getByTestId ( "ra-header" ) ) . toBeVisible ( {
42- timeout : 0 ,
43- } ) ;
41+ await expect ( page . getByTestId ( "ra-header" ) ) . toBeVisible ( { timeout : 0 } ) ;
4442 await expect ( page . getByTestId ( "ra-header" ) ) . toBeEditable ( ) ;
4543 //edit the headers
4644
@@ -59,19 +57,11 @@ export const testMakeAReadAlong = async (page: Page) => {
5957 await expect ( page . getByTestId ( "ra-subheader" ) ) . toHaveValue ( "by me" ) ;
6058 //add translations
6159
62- await page
63- . locator ( "#t0b0d0p0s0" )
64- . getByRole ( "button" )
65- . click ( { force : true , timeout : 0 } ) ;
60+ await page . locator ( "#t0b0d0p0s0" ) . getByRole ( "button" ) . click ( { timeout : 0 } ) ;
61+
62+ await page . locator ( "#t0b0d0p0s1" ) . getByRole ( "button" ) . click ( { timeout : 0 } ) ;
63+ await page . locator ( "#t0b0d0p1s0" ) . getByRole ( "button" ) . click ( { timeout : 0 } ) ;
6664
67- await page
68- . locator ( "#t0b0d0p0s1" )
69- . getByRole ( "button" )
70- . click ( { force : true , timeout : 0 } ) ;
71- await page
72- . locator ( "#t0b0d0p1s0" )
73- . getByRole ( "button" )
74- . click ( { force : true , timeout : 0 } ) ;
7565 //update translations
7666 await expect ( page . locator ( "#t0b0d0p0s0translation" ) ) . toBeEditable ( ) ;
7767 await page
You can’t perform that action at this time.
0 commit comments