MCPcopy Index your code
hub / github.com/angular-split/angular-split / checkAreaOrder

Function checkAreaOrder

cypress/e2e/9.geek.cy.js:279–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277})
278
279function 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
294function moveArea(numArea, gap) {
295 cy.get('.opts-area div[draggable="true"]')

Callers 1

9.geek.cy.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…