thousands-house-85089
12/12/2022, 4:04 PMmysterious-psychiatrist-29678
12/12/2022, 4:11 PMcy.get('.fxc-dropdown-input', {timeout: 37000})
.eq(1)
.should('be.visible')
still not working as even the dropdown loaded the background JS scripts not at least I guessmysterious-psychiatrist-29678
12/12/2022, 4:16 PMconst click = $el => $el.click()
cy.contains(".fxc-dropdown-filter", "Resource group")
.find(".fxc-dropdown-input")
.should('be.visible')
.click()
.then(() => {
cy.find('#form-label-id-2aria')
.pipe(click)
.should($el => {
expect($el).to.be.visible
}).
cy.contains('ab-selenium-test-do-not-delete', {timeout: 15000})
.cy.click()
thousands-house-85089
12/12/2022, 4:19 PMthousands-house-85089
12/12/2022, 4:20 PMthousands-house-85089
12/12/2022, 4:20 PMbitter-judge-96754
12/12/2022, 7:42 PMnarrow-policeman-70631
12/12/2022, 8:20 PMmysterious-belgium-25713
12/12/2022, 10:10 PMbitter-judge-96754
12/12/2022, 10:34 PMastonishing-window-24437
12/13/2022, 7:24 AMfresh-doctor-14925
12/13/2022, 8:28 AMnutritious-analyst-96582
12/13/2022, 8:28 AMmysterious-psychiatrist-29678
12/13/2022, 8:29 AMbetter-mouse-45393
12/13/2022, 10:58 AMthousands-house-85089
12/13/2022, 11:16 AMthousands-house-85089
12/13/2022, 11:17 AMstocky-kilobyte-57323
12/13/2022, 11:57 AMit.only("shows correct number of rows after deletion", () => {
cy.create("App\\Models\\Place");
cy.create("App\\Models\\Place");
cy.create("App\\Models\\Place");
cy.intercept({ method: "DELETE", url: "customers/places**" }).as(
"deletePlaces"
);
cy.login({ email: "demo@example.com" });
cy.visit({ route: "customers.places.index" });
cy.get('[data-test="selectAll"]').click();
cy.get('[data-test="deleteSelected"]').click();
// cy.get('[data-test="modal"] [data-test="confirm"]').click();
cy.wait("@deletePlaces").its("response.statusCode").should("eq", 303);
cy.get("table")
.find("tbody tr")
.then((row) => {
expect(row.length).to.equal(2);
});
});`
After the the delete request, there's a get request. for some reason the table still contain 3 elements when it gets to the cy.get("table")stocky-kilobyte-57323
12/13/2022, 11:57 AMproud-tomato-54212
12/13/2022, 12:04 PMgray-kilobyte-89541
12/13/2022, 12:09 PMcy.task
commandproud-tomato-54212
12/13/2022, 12:10 PMgray-kilobyte-89541
12/13/2022, 12:24 PMproud-tomato-54212
12/13/2022, 12:44 PMacceptable-tailor-43291
12/13/2022, 1:21 PMcy.session
with cacheAcrossSpec enabled not works in cypress run mode?acceptable-tailor-43291
12/13/2022, 1:35 PMrough-agent-43374
12/13/2022, 2:06 PMfresh-doctor-14925
12/13/2022, 2:47 PMcy session
with cacheAcrossSpecfresh-doctor-14925
12/13/2022, 2:47 PMwide-daybreak-98113
12/13/2022, 4:49 PM