@@ -12,6 +12,8 @@ test('Collect and run mock tasks [v2]', async ({ page, workflow, request }) => {
1212 await page . waitForURL ( workflow . url ) ;
1313 await waitPageLoading ( page ) ;
1414
15+ test . slow ( ) ;
16+
1517 /** @type {string } */
1618 let datasetName1 ;
1719 /** @type {number } */
@@ -84,7 +86,7 @@ test('Collect and run mock tasks [v2]', async ({ page, workflow, request }) => {
8486 } ) ;
8587
8688 await test . step ( 'Check tasks list' , async ( ) => {
87- await expect ( page . getByRole ( 'table' ) . last ( ) . locator ( 'tbody tr' ) ) . toHaveCount ( rowsCount + 13 ) ;
89+ await expect ( page . getByRole ( 'table' ) . last ( ) . locator ( 'tbody tr' ) ) . toHaveCount ( rowsCount + 14 ) ;
8890 } ) ;
8991
9092 await test . step ( 'Delete task collection log' , async ( ) => {
@@ -115,6 +117,15 @@ test('Collect and run mock tasks [v2]', async ({ page, workflow, request }) => {
115117 await waitPageLoading ( page ) ;
116118 } ) ;
117119
120+ await test . step ( 'Verify that the last dataset has been automatically selected' , async ( ) => {
121+ await expect (
122+ page
123+ . getByRole ( 'combobox' , { name : 'Dataset' , exact : true } )
124+ . first ( )
125+ . getByRole ( 'option' , { selected : true } )
126+ ) . toHaveText ( datasetName2 ) ;
127+ } ) ;
128+
118129 await test . step ( 'Select the first dataset' , async ( ) => {
119130 await page
120131 . getByRole ( 'combobox' , { name : 'Dataset' , exact : true } )
@@ -181,6 +192,15 @@ test('Collect and run mock tasks [v2]', async ({ page, workflow, request }) => {
181192 await waitPageLoading ( page ) ;
182193 } ) ;
183194
195+ await test . step ( 'Verify that the dataset used in the last job has been automatically selected' , async ( ) => {
196+ await expect (
197+ page
198+ . getByRole ( 'combobox' , { name : 'Dataset' , exact : true } )
199+ . first ( )
200+ . getByRole ( 'option' , { selected : true } )
201+ ) . toHaveText ( datasetName1 ) ;
202+ } ) ;
203+
184204 await test . step ( 'Select the second dataset' , async ( ) => {
185205 await page
186206 . getByRole ( 'combobox' , { name : 'Dataset' , exact : true } )
0 commit comments