@@ -3077,12 +3077,17 @@ describe('Stop details', { tags: [Tag.StopRegistry] }, () => {
30773077 } ) ;
30783078
30793079 describe ( 'latest change history' , ( ) => {
3080- it ( 'should display 5 latest change history items and support show all navigation ' , ( ) => {
3080+ it ( 'should display 5 latest change history items' , ( ) => {
30813081 StopDetailsPage . visit ( 'H2003' ) ;
30823082 StopDetailsPage . page ( ) . shouldBeVisible ( ) ;
30833083
30843084 StopDetailsPage . latestChangeHistory . container ( ) . shouldBeVisible ( ) ;
3085- StopDetailsPage . latestChangeHistory . title ( ) . shouldBeVisible ( ) ;
3085+ StopDetailsPage . latestChangeHistory
3086+ . title ( )
3087+ . shouldBeVisible ( )
3088+ . should ( 'contain.text' , 'Muutoshistoria' ) ;
3089+
3090+ StopDetailsPage . latestChangeHistory . getItems ( ) . should ( 'have.length' , 1 ) ;
30863091
30873092 cy . section ( 'Make multiple changes to create history' , ( ) => {
30883093 // Change 1
@@ -3134,27 +3139,32 @@ describe('Stop details', { tags: [Tag.StopRegistry] }, () => {
31343139
31353140 StopDetailsPage . latestChangeHistory
31363141 . getNthItem ( 0 )
3137- . should ( 'be.visible' )
3142+ . should ( 'contain.text' , 'Perustiedot' )
3143+ . and ( 'contain.text' , 'ELY-numero:' )
31383144 . and ( 'contain.text' , '9999999' ) ;
31393145
31403146 StopDetailsPage . latestChangeHistory
31413147 . getNthItem ( 1 )
3142- . should ( 'be.visible' )
3148+ . should ( 'contain.text' , 'Sijainti' )
3149+ . and ( 'contain.text' , 'Postinumero:' )
31433150 . and ( 'contain.text' , '00200' ) ;
31443151
31453152 StopDetailsPage . latestChangeHistory
31463153 . getNthItem ( 2 )
3147- . should ( 'be.visible' )
3154+ . should ( 'contain.text' , 'Perustiedot' )
3155+ . and ( 'contain.text' , 'Sijainti (suomi):' )
31483156 . and ( 'contain.text' , 'Uusi sijainti' ) ;
31493157
31503158 StopDetailsPage . latestChangeHistory
31513159 . getNthItem ( 3 )
3152- . should ( 'be.visible' )
3160+ . should ( 'contain.text' , 'Pysäkkikilvet' )
3161+ . and ( 'contain.text' , 'Pysäkkikilpien tyyppi:' )
31533162 . and ( 'contain.text' , 'Katoskehikko' ) ;
31543163
31553164 StopDetailsPage . latestChangeHistory
31563165 . getNthItem ( 4 )
3157- . should ( 'be.visible' )
3166+ . should ( 'contain.text' , 'Sijainti' )
3167+ . and ( 'contain.text' , 'Pysäkin osoite:' )
31583168 . and ( 'contain.text' , 'Mannerheimintie 1' ) ;
31593169 } ) ;
31603170
0 commit comments