@@ -14,8 +14,8 @@ const page = create({
1414 visit : visitable ( url ) ,
1515 showDestroyed : clickable ( '[data-test-display-destroyed-button]' ) ,
1616 linkList : collection ( '[data-test-deployment-list-item]' ) ,
17- statusIndicators : collection ( '[data-test-health-status="alive"]' ) ,
18- deployUrls : collection ( '.deploy-url ' ) ,
17+ aliveStatusIndicators : collection ( '[data-test-health-status="alive"]' ) ,
18+ healthCheckOrDeployUrls : collection ( '.health-check--text-description ' ) ,
1919 operationStatuses : collection ( '[data-test-operation-status]' ) ,
2020 gitCommits : collection ( '[data-test-git-commit]' ) ,
2121} ) ;
@@ -28,19 +28,19 @@ module('Acceptance | deployments list', function (hooks) {
2828 test ( 'happy path' , async function ( assert ) {
2929 let project = this . server . create ( 'project' , { name : 'microchip' } ) ;
3030 let application = this . server . create ( 'application' , { name : 'wp-bandwidth' , project } ) ;
31- let deployments = this . server . createList ( 'deployment' , 4 , 'random' , { application } ) ;
31+ let deployments = this . server . createList ( 'deployment' , 3 , 'random' , { application } ) ;
3232 this . server . create ( 'status-report' , 'alive' , { application, target : deployments [ 0 ] } ) ;
33- this . server . create ( 'status-report' , 'alive ' , { application, target : deployments [ 1 ] } ) ;
33+ this . server . create ( 'status-report' , 'ready ' , { application, target : deployments [ 1 ] } ) ;
3434
3535 await page . visit ( ) ;
3636
37- assert . equal ( page . linkList . length , 4 ) ;
38- assert . equal ( currentURL ( ) , redirectUrl + '4 ' ) ;
39- assert . equal ( page . statusIndicators . length , 2 ) ;
40- assert . equal ( page . operationStatuses . length , 4 ) ;
41- assert . equal ( page . gitCommits . length , 4 ) ;
42- // random list item url check
43- assert . equal ( page . deployUrls [ page . deployUrls . length - 1 ] . text , ` wildly-intent-honeybee--v1 .waypoint.run` ) ;
37+ assert . equal ( page . linkList . length , 3 ) ;
38+ assert . equal ( currentURL ( ) , redirectUrl + '3 ' ) ;
39+ assert . equal ( page . aliveStatusIndicators . length , 1 ) ;
40+ assert . equal ( page . operationStatuses . length , 3 ) ;
41+ assert . equal ( page . gitCommits . length , 3 ) ;
42+ assert . equal ( page . healthCheckOrDeployUrls [ 1 ] . text , 'Starting…' ) ;
43+ assert . equal ( page . healthCheckOrDeployUrls [ 0 ] . text , ' wildly-intent-honeybee--v2 .waypoint.run' ) ;
4444 } ) ;
4545
4646 test ( 'visiting deployments page redirects to latest' , async function ( assert ) {
0 commit comments