Commit 690896f
fix e2e tests failing (#91)
* Add file upload simulation to license resource step tests
Enhanced the submission UI Cypress tests by simulating a file upload via drag-and-drop in the license resource step. This ensures the upload functionality is tested as part of the submission process.
(cherry picked from commit ce4dee9)
* skipping tests
skipping tests
(cherry picked from commit 24b90e1)
* Add tests for license validation on file upload
Introduces a new test to ensure license validation is required when a file is uploaded during submission. Also adds a skipped test to verify that validation warnings are not shown for metadata-only submissions without file uploads.
(cherry picked from commit 1dbb828)
* Refactor license status check in Cypress command
Updated the checkResourceLicenseStatus function to use a status-to-icon mapping and improved selector logic for better clarity and maintainability.
(cherry picked from commit a4edcc2)
* Update selector for clarin-license section in Cypress
Replaces the use of 'ds-submission-section-clarin-license' and closest div with a direct selector for 'div[id="section_clarin-license"]' and its '.card-header' in the createItemProcess test utility.
(cherry picked from commit cc5861c)
* Update license validation checks in submission UI test
Added a wait to allow frontend validation state to propagate before checking header visibility. Changed resource license status check from 'Warnings' to 'Errors' to reflect updated validation behavior.
(cherry picked from commit 7d7b95f)
* Enable and improve metadata-only validation test
Unskipped the test for validation warnings when no file is uploaded and enhanced it to check for both warning and error icons absence, as well as the presence of the success icon. This ensures the UI behaves correctly for metadata-only submissions.
(cherry picked from commit 0bc08ab)
---------
Co-authored-by: amadulhaxxani <hassan@ufal.mff.cuni.cz>1 parent 5b19a98 commit 690896f
2 files changed
Lines changed: 80 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
211 | | - | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
236 | 303 | | |
237 | 304 | | |
238 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
347 | 357 | | |
348 | 358 | | |
349 | 359 | | |
| |||
0 commit comments