Parcourir la source

chore: wait for request to avoid flaky tests

version-14
Saqib Ansari il y a 3 ans
Parent
révision
262bcdaf43
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      cypress/integration/multi_select_dialog.js

+ 2
- 1
cypress/integration/multi_select_dialog.js Voir le fichier

@@ -85,8 +85,9 @@ context('MultiSelectDialog', () => {
expect($rows).to.have.length(20);
});

cy.intercept('POST', 'api/method/frappe.client.get_list').as('get-more-records');
cy.get('@more-btn').find('button').click({force: true});
cy.wait(1000);
cy.wait('@get-more-records');

cy.get_open_dialog().get('.list-item-container').should(($rows) => {
if ($rows.length <= 20) {


Chargement…
Annuler
Enregistrer