@@ -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