()
| 277 | }) |
| 278 | |
| 279 | function checkAreaOrder() { |
| 280 | // Retrieve all as-split-area displayed in order |
| 281 | cy.get('.as-split-area').then(($splitAreas) => { |
| 282 | const splitAreasNum = $splitAreas.map((i, $el) => $el.textContent) |
| 283 | |
| 284 | // Retrieve all listed areas displayed in order |
| 285 | cy.get('.opts-area div[draggable="true"] .num').then(($controlAreas) => { |
| 286 | const controlAreasNum = $controlAreas.map((i, $el) => $el.textContent) |
| 287 | |
| 288 | // Compare 2 lists > should be the same |
| 289 | expect(splitAreasNum.get()).to.deep.eq(controlAreasNum.get()) |
| 290 | }) |
| 291 | }) |
| 292 | } |
| 293 | |
| 294 | function moveArea(numArea, gap) { |
| 295 | cy.get('.opts-area div[draggable="true"]') |
no outgoing calls
no test coverage detected
searching dependent graphs…