You've already forked isop-mirror
fix: add wait after company and student deletion to ensure proper row count verification
This commit is contained in:
@@ -64,6 +64,8 @@ describe('Admin Company CRUD', () => {
|
|||||||
cy.contains("Potvrdiť vymazanie").parent().contains("Vymazať").click()
|
cy.contains("Potvrdiť vymazanie").parent().contains("Vymazať").click()
|
||||||
cy.contains("Potvrdiť vymazanie").should('not.exist')
|
cy.contains("Potvrdiť vymazanie").should('not.exist')
|
||||||
|
|
||||||
|
cy.wait(1000)
|
||||||
|
|
||||||
cy.get('table tbody tr').its('length').then((count) => {
|
cy.get('table tbody tr').its('length').then((count) => {
|
||||||
expect(count).to.be.eq(initialRowCount - 1)
|
expect(count).to.be.eq(initialRowCount - 1)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ describe('Admin Student CRUD', () => {
|
|||||||
cy.contains("Potvrdiť vymazanie").parent().contains("Vymazať").click()
|
cy.contains("Potvrdiť vymazanie").parent().contains("Vymazať").click()
|
||||||
cy.contains("Potvrdiť vymazanie").should('not.exist')
|
cy.contains("Potvrdiť vymazanie").should('not.exist')
|
||||||
|
|
||||||
|
cy.wait(1000)
|
||||||
|
|
||||||
cy.get('table tbody tr').its('length').then((count) => {
|
cy.get('table tbody tr').its('length').then((count) => {
|
||||||
expect(count).to.be.eq(initialRowCount - 1)
|
expect(count).to.be.eq(initialRowCount - 1)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user