@@ -71,7 +71,6 @@ test.meta("testID", "states-001").meta({ mode: "public" })("Common: Update state
7171
7272 await album . openAlbumWithUid ( AlbumUid ) ;
7373 await toolbar . triggerToolbarAction ( "edit" ) ;
74- await t . click ( albumdialog . category ) . wait ( 3000 ) ;
7574
7675 await t
7776 . expect ( albumdialog . description . value )
@@ -103,70 +102,61 @@ test.meta("testID", "states-001").meta({ mode: "public" })("Common: Update state
103102 . notContains ( "Earth" ) ;
104103} ) ;
105104
106- test . meta ( "testID" , "states-002" ) . meta ( { mode : "public" } ) (
107- "Common: Create, Edit, delete sharing link for state" ,
108- async ( t ) => {
109- await page . testCreateEditDeleteSharingLink ( "states" ) ;
110- }
111- ) ;
112-
113- test . meta ( "testID" , "states-003" ) . meta ( { mode : "public" } ) (
114- "Common: Create/delete album-clone from state" ,
115- async ( t ) => {
116- await menu . openPage ( "albums" ) ;
117- const AlbumCount = await album . getAlbumCount ( "all" ) ;
118- await toolbar . search ( "Holiday" ) ;
119- const HolidayAlbumUid = await album . getNthAlbumUid ( "all" , 0 ) ;
120- await album . openAlbumWithUid ( HolidayAlbumUid ) ;
121- const InitialPhotoCountHoliday = await photo . getPhotoCount ( "all" ) ;
122- await menu . openPage ( "states" ) ;
123- await toolbar . search ( "Canada" ) ;
124- const FirstStateUid = await album . getNthAlbumUid ( "all" , 0 ) ;
125- await album . openAlbumWithUid ( FirstStateUid ) ;
126- const PhotoCountInState = await photo . getPhotoCount ( "all" ) ;
127- const FirstPhotoUid = await photo . getNthPhotoUid ( "image" , 0 ) ;
128- const SecondPhotoUid = await photo . getNthPhotoUid ( "image" , 1 ) ;
129- await menu . openPage ( "states" ) ;
130- await album . selectAlbumFromUID ( FirstStateUid ) ;
131- await contextmenu . triggerContextMenuAction ( "clone" , [ "NotYetExistingAlbumForState" , "Holiday" ] ) ;
132- await menu . openPage ( "albums" ) ;
133- const AlbumCountAfterCreation = await album . getAlbumCount ( "all" ) ;
134-
135- await t . expect ( AlbumCountAfterCreation ) . eql ( AlbumCount + 1 ) ;
136-
137- await toolbar . search ( "NotYetExistingAlbumForState" ) ;
138- const AlbumUid = await album . getNthAlbumUid ( "all" , 0 ) ;
139- await album . openAlbumWithUid ( AlbumUid ) ;
140- const PhotoCountInAlbum = await photo . getPhotoCount ( "all" ) ;
141-
142- await t . expect ( PhotoCountInAlbum ) . eql ( PhotoCountInState ) ;
143-
144- await photo . checkPhotoVisibility ( FirstPhotoUid , true ) ;
145- await photo . checkPhotoVisibility ( SecondPhotoUid , true ) ;
146- await menu . openPage ( "albums" ) ;
147- await album . selectAlbumFromUID ( AlbumUid ) ;
148- await contextmenu . triggerContextMenuAction ( "delete" , "" ) ;
149- const AlbumCountAfterDelete = await album . getAlbumCount ( "all" ) ;
150-
151- await t . expect ( AlbumCountAfterDelete ) . eql ( AlbumCount ) ;
152- await album . openAlbumWithUid ( HolidayAlbumUid ) ;
153- await photo . selectPhotoFromUID ( FirstPhotoUid ) ;
154- await photo . selectPhotoFromUID ( SecondPhotoUid ) ;
155- await contextmenu . triggerContextMenuAction ( "remove" , "" ) ;
156- const PhotoCountHolidayAfterDelete = await photo . getPhotoCount ( "all" ) ;
157-
158- await t . expect ( PhotoCountHolidayAfterDelete ) . eql ( InitialPhotoCountHoliday ) ;
159-
160- await menu . openPage ( "states" ) ;
161- await album . openAlbumWithUid ( FirstStateUid ) ;
162- await photo . checkPhotoVisibility ( FirstPhotoUid , true ) ;
163- await photo . checkPhotoVisibility ( SecondPhotoUid , true ) ;
164- }
165- ) ;
105+ test . meta ( "testID" , "states-002" ) . meta ( { mode : "public" } ) ( "Common: Create, Edit, delete sharing link for state" , async ( t ) => {
106+ await page . testCreateEditDeleteSharingLink ( "states" ) ;
107+ } ) ;
166108
167- test . meta ( "testID" , "states-004" ) . meta ( { type : "short" , mode : "public" } ) (
168- "Common: Set album cover from States Page" ,
169- async ( t ) => {
170- await page . testSetAlbumCover ( "states" ) ;
171- }
172- ) ;
109+ test . meta ( "testID" , "states-003" ) . meta ( { mode : "public" } ) ( "Common: Create/delete album-clone from state" , async ( t ) => {
110+ await menu . openPage ( "albums" ) ;
111+ const AlbumCount = await album . getAlbumCount ( "all" ) ;
112+ await toolbar . search ( "Holiday" ) ;
113+ const HolidayAlbumUid = await album . getNthAlbumUid ( "all" , 0 ) ;
114+ await album . openAlbumWithUid ( HolidayAlbumUid ) ;
115+ const InitialPhotoCountHoliday = await photo . getPhotoCount ( "all" ) ;
116+ await menu . openPage ( "states" ) ;
117+ await toolbar . search ( "Canada" ) ;
118+ const FirstStateUid = await album . getNthAlbumUid ( "all" , 0 ) ;
119+ await album . openAlbumWithUid ( FirstStateUid ) ;
120+ const PhotoCountInState = await photo . getPhotoCount ( "all" ) ;
121+ const FirstPhotoUid = await photo . getNthPhotoUid ( "image" , 0 ) ;
122+ const SecondPhotoUid = await photo . getNthPhotoUid ( "image" , 1 ) ;
123+ await menu . openPage ( "states" ) ;
124+ await album . selectAlbumFromUID ( FirstStateUid ) ;
125+ await contextmenu . triggerContextMenuAction ( "clone" , [ "NotYetExistingAlbumForState" , "Holiday" ] ) ;
126+ await menu . openPage ( "albums" ) ;
127+ const AlbumCountAfterCreation = await album . getAlbumCount ( "all" ) ;
128+
129+ await t . expect ( AlbumCountAfterCreation ) . eql ( AlbumCount + 1 ) ;
130+
131+ await toolbar . search ( "NotYetExistingAlbumForState" ) ;
132+ const AlbumUid = await album . getNthAlbumUid ( "all" , 0 ) ;
133+ await album . openAlbumWithUid ( AlbumUid ) ;
134+ const PhotoCountInAlbum = await photo . getPhotoCount ( "all" ) ;
135+
136+ await t . expect ( PhotoCountInAlbum ) . eql ( PhotoCountInState ) ;
137+
138+ await photo . checkPhotoVisibility ( FirstPhotoUid , true ) ;
139+ await photo . checkPhotoVisibility ( SecondPhotoUid , true ) ;
140+ await menu . openPage ( "albums" ) ;
141+ await album . selectAlbumFromUID ( AlbumUid ) ;
142+ await contextmenu . triggerContextMenuAction ( "delete" , "" ) ;
143+ const AlbumCountAfterDelete = await album . getAlbumCount ( "all" ) ;
144+
145+ await t . expect ( AlbumCountAfterDelete ) . eql ( AlbumCount ) ;
146+ await album . openAlbumWithUid ( HolidayAlbumUid ) ;
147+ await photo . selectPhotoFromUID ( FirstPhotoUid ) ;
148+ await photo . selectPhotoFromUID ( SecondPhotoUid ) ;
149+ await contextmenu . triggerContextMenuAction ( "remove" , "" ) ;
150+ const PhotoCountHolidayAfterDelete = await photo . getPhotoCount ( "all" ) ;
151+
152+ await t . expect ( PhotoCountHolidayAfterDelete ) . eql ( InitialPhotoCountHoliday ) ;
153+
154+ await menu . openPage ( "states" ) ;
155+ await album . openAlbumWithUid ( FirstStateUid ) ;
156+ await photo . checkPhotoVisibility ( FirstPhotoUid , true ) ;
157+ await photo . checkPhotoVisibility ( SecondPhotoUid , true ) ;
158+ } ) ;
159+
160+ test . meta ( "testID" , "states-004" ) . meta ( { type : "short" , mode : "public" } ) ( "Common: Set album cover from States Page" , async ( t ) => {
161+ await page . testSetAlbumCover ( "states" ) ;
162+ } ) ;
0 commit comments