@@ -162,7 +162,7 @@ function makeMakeTest (defaultDependentTests: Array<string> | string = []) {
162162 }
163163
164164 if (
165- name !== ISOLATED_TEST ||
165+ name !== ISOLATED_TEST &&
166166 testDependencies [ ISOLATED_TEST ] . indexOf ( name ) === - 1
167167 ) {
168168 testResults [ name ] = true
@@ -1265,7 +1265,7 @@ describe('end-to-end', () => {
12651265 // wait for editor to get ready and show starting dialog
12661266 await waitForAndClick ( '[data-test-id="import-latest-version-button"]' )
12671267 // wait for snapshot to get created
1268- waitAndClearCompletedJobs ( )
1268+ await waitAndClearCompletedJobs ( )
12691269
12701270 // begin editing
12711271 await waitForAndClick ( '[data-test-id="begin-editing-button"]' )
@@ -1304,7 +1304,7 @@ describe('end-to-end', () => {
13041304 // wait for editor to get ready and show starting dialog
13051305 await waitForAndClick ( '[data-test-id="edit-from-scratch-button"]' )
13061306 // wait for snapshot to get created
1307- waitAndClearCompletedJobs ( )
1307+ await waitAndClearCompletedJobs ( )
13081308
13091309 // begin editing
13101310 await waitForAndClick ( '[data-test-id="begin-editing-button"]' )
@@ -1739,7 +1739,12 @@ describe('end-to-end', () => {
17391739 // verify data was saved and retrieved from server
17401740 await expectSelectorToContainHtml (
17411741 '[data-test-id="stop-stop_id-input-container"]' ,
1742- 'test-stop-1'
1742+ dummyStop1 . id
1743+ )
1744+ // verify stop shows up in stop entity list
1745+ await expectSelectorToContainHtml (
1746+ '.EntityList' ,
1747+ dummyStop1 . name
17431748 )
17441749 } , defaultTestTimeout )
17451750
@@ -1765,14 +1770,24 @@ describe('end-to-end', () => {
17651770 '[data-test-id="stop-stop_desc-input-container"] input'
17661771 )
17671772
1768- // verify data was saved and retrieved from server
1773+ // verify the second stop was saved and retrieved from server
17691774 await expectSelectorToContainHtml (
17701775 '[data-test-id="stop-stop_desc-input-container"]' ,
17711776 'test 2 updated'
17721777 )
1773- } , defaultTestTimeout )
1778+ // verify the second stop shows up in stop entity list
1779+ await expectSelectorToContainHtml (
1780+ '.EntityList' ,
1781+ dummyStop2 . name
1782+ )
1783+ // verify the first stop shows up in stop entity list
1784+ await expectSelectorToContainHtml (
1785+ '.EntityList' ,
1786+ dummyStop1 . name
1787+ )
1788+ } , defaultTestTimeout , 'should create stop' )
17741789
1775- makeEditorEntityTest ( 'should delete stop data ' , async ( ) => {
1790+ makeEditorEntityTest ( 'should delete stop' , async ( ) => {
17761791 // create a new stop that will get deleted
17771792 await click ( '[data-test-id="clone-stop-button"]' )
17781793
@@ -1822,7 +1837,17 @@ describe('end-to-end', () => {
18221837 '.entity-list' ,
18231838 'Russell Ave and Valley Dr to delete (3)'
18241839 )
1825- } , defaultTestTimeout , 'should create stop' )
1840+ // verify the second stop shows up in stop entity list
1841+ await expectSelectorToContainHtml (
1842+ '.EntityList' ,
1843+ dummyStop2 . name
1844+ )
1845+ // verify the first stop shows up in stop entity list
1846+ await expectSelectorToContainHtml (
1847+ '.EntityList' ,
1848+ dummyStop1 . name
1849+ )
1850+ } , defaultTestTimeout , 'should update stop data' )
18261851 } )
18271852
18281853 // ---------------------------------------------------------------------------
0 commit comments