@@ -162,7 +162,7 @@ function makeMakeTest (defaultDependentTests: Array<string> | string = []) {
162
162
}
163
163
164
164
if (
165
- name !== ISOLATED_TEST ||
165
+ name !== ISOLATED_TEST &&
166
166
testDependencies [ ISOLATED_TEST ] . indexOf ( name ) === - 1
167
167
) {
168
168
testResults [ name ] = true
@@ -1265,7 +1265,7 @@ describe('end-to-end', () => {
1265
1265
// wait for editor to get ready and show starting dialog
1266
1266
await waitForAndClick ( '[data-test-id="import-latest-version-button"]' )
1267
1267
// wait for snapshot to get created
1268
- waitAndClearCompletedJobs ( )
1268
+ await waitAndClearCompletedJobs ( )
1269
1269
1270
1270
// begin editing
1271
1271
await waitForAndClick ( '[data-test-id="begin-editing-button"]' )
@@ -1304,7 +1304,7 @@ describe('end-to-end', () => {
1304
1304
// wait for editor to get ready and show starting dialog
1305
1305
await waitForAndClick ( '[data-test-id="edit-from-scratch-button"]' )
1306
1306
// wait for snapshot to get created
1307
- waitAndClearCompletedJobs ( )
1307
+ await waitAndClearCompletedJobs ( )
1308
1308
1309
1309
// begin editing
1310
1310
await waitForAndClick ( '[data-test-id="begin-editing-button"]' )
@@ -1739,7 +1739,12 @@ describe('end-to-end', () => {
1739
1739
// verify data was saved and retrieved from server
1740
1740
await expectSelectorToContainHtml (
1741
1741
'[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
1743
1748
)
1744
1749
} , defaultTestTimeout )
1745
1750
@@ -1765,14 +1770,24 @@ describe('end-to-end', () => {
1765
1770
'[data-test-id="stop-stop_desc-input-container"] input'
1766
1771
)
1767
1772
1768
- // verify data was saved and retrieved from server
1773
+ // verify the second stop was saved and retrieved from server
1769
1774
await expectSelectorToContainHtml (
1770
1775
'[data-test-id="stop-stop_desc-input-container"]' ,
1771
1776
'test 2 updated'
1772
1777
)
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' )
1774
1789
1775
- makeEditorEntityTest ( 'should delete stop data ' , async ( ) => {
1790
+ makeEditorEntityTest ( 'should delete stop' , async ( ) => {
1776
1791
// create a new stop that will get deleted
1777
1792
await click ( '[data-test-id="clone-stop-button"]' )
1778
1793
@@ -1822,7 +1837,17 @@ describe('end-to-end', () => {
1822
1837
'.entity-list' ,
1823
1838
'Russell Ave and Valley Dr to delete (3)'
1824
1839
)
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' )
1826
1851
} )
1827
1852
1828
1853
// ---------------------------------------------------------------------------
0 commit comments