@@ -1573,11 +1573,6 @@ describe('end-to-end', () => {
15731573 await waitForSelector ( '[data-test-id="route-route_id-input-container"]' )
15741574
15751575 // fill out form
1576- // set status to approved
1577- await page . select (
1578- '[data-test-id="route-status-input-container"] select' ,
1579- '2'
1580- )
15811576
15821577 // set public to yes
15831578 await page . select (
@@ -1639,6 +1634,13 @@ describe('end-to-end', () => {
16391634 'example.branding.test'
16401635 )
16411636
1637+ // Set status to approved so the route is exported to a snapshot.
1638+ // Do this last, otherwise the approved status will change back to in-progress.
1639+ await page . select (
1640+ '[data-test-id="route-status-input-container"] select' ,
1641+ '2'
1642+ )
1643+
16421644 // save
16431645 await click ( '[data-test-id="save-entity-button"]' )
16441646 await wait ( 2000 , 'for save to happen' )
@@ -1665,6 +1667,13 @@ describe('end-to-end', () => {
16651667 ' updated'
16661668 )
16671669
1670+ // Set status to approved so the route is exported to a snapshot.
1671+ // Do this last, otherwise the approved status will change back to in-progress.
1672+ await page . select (
1673+ '[data-test-id="route-status-input-container"] select' ,
1674+ '2'
1675+ )
1676+
16681677 // save
16691678 await click ( '[data-test-id="save-entity-button"]' )
16701679 await wait ( 2000 , 'for save to happen' )
@@ -2640,9 +2649,6 @@ describe('end-to-end', () => {
26402649 // wait for dialog to appear
26412650 await waitForSelector ( '[data-test-id="snapshot-dialog-name"]' )
26422651
2643- // confirm that we want to publish with unapproved routes
2644- await click ( '[data-test-id="confirmPublishWithUnapproved"]' )
2645-
26462652 // enter name
26472653 await type ( '[data-test-id="snapshot-dialog-name"]' , 'test-snapshot' )
26482654
0 commit comments