mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-10-30 05:57:12 +00:00
fix: cypress test
This commit is contained in:
@@ -13,7 +13,7 @@ export const cleanUpJobs = () => {
|
||||
cy.get('[data-testid="select-all"]')
|
||||
.closest("button")
|
||||
.then(($btn) => {
|
||||
if ($btn.is(":disabled") || $btn.css("pointer-events") === "none") {
|
||||
if ($btn.is(":disabled")) {
|
||||
if (attempt < maxAttempts) {
|
||||
cy.wait(1000).then(() =>
|
||||
tryClickSelectAll(attempt + 1, maxAttempts)
|
||||
@@ -24,7 +24,7 @@ export const cleanUpJobs = () => {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
cy.wrap($btn).click();
|
||||
cy.wrap($btn).click({ multiple: true });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user