cold-author-79999
02/16/2023, 7:05 PMtable tr td:nth-child(5):contains(${tenant}))
.parents("tr")
.filter((k, tr) => {
return tr.children[0].innerText === house;
})
.filter((k, tr) => {
return tr.children[1].innerText === plot;
})
.find("[data-test-id='options-wrapper']")
.click();
return cy
.get("#my-requests-table tbody tr")
.filter(:has(td:nth-child(3):contains(${p3})))
.filter(:has(td:nth-child(4):contains(${p4})))
.filter(:has(td:nth-child(2):contains(${p2})))
.filter(:has(td:nth-child(1):contains(${p1})))
.filter(:has(td:nth-child(5):contains(${p5})));
Can you explain the use of filters in each of these scenario?which is the right usage of filter?cold-author-79999
02/16/2023, 7:07 PM