소스 검색

chore: wait for request to avoid flaky tests

version-14
Saqib Ansari 3 년 전
부모
커밋
262bcdaf43
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      cypress/integration/multi_select_dialog.js

+ 2
- 1
cypress/integration/multi_select_dialog.js 파일 보기

@@ -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) {


불러오는 중...
취소
저장