it('case assignment dialog should be closed when clicking cancel button on the dialog', () => {
cy.get('.ag-selection-checkbox').eq(0).find('input[type="checkbox"]').check();
cy.getByDataSelector('assign-button').eq(0).click();
cy.get('.modal-dialog').then(() => {
cy.get('.case-text').should('contain', 'Case Selected: 1');
cy.get('.modal-footer')
.find('.btn')
.eq(1)
.click()
.then(() => {
cy.get('.modal-dialog').should('not.exist');
});
});
});
Error: Timed out retrying after 4000ms: Expected
在我将角度版本从 12 升级到 13 后,这个测试用例失败了。早些时候它工作正常。 这是我拥有的更新后的 package.json 文件。
{
"dependencies": {
"@ag-grid-community/all-modules": "~26.1.0",
"@ag-grid-community/angular": "~26.1.0",
"@ag-grid-community/core": "~26.1.0",
"@angular/animations": "~13.4.0",
"@angular/cdk": "^13.3.9",
"@angular/common": "~13.4.0",
"@angular/compiler": "~13.4.0",
"@angular/core": "~13.4.0",
"@angular/forms": "^13.4.0",
"@angular/platform-browser": "~13.4.0",
"@angular/platform-browser-dynamic": "~13.4.0",
"@angular/router": "~13.4.0",
"@auth0/angular-jwt": "^5.0.2",
"@ngrx/effects": "^13.2.0",
"@ngrx/store": "^13.2.0",
"@ngx-formly/bootstrap": "^5.12.1",
"@ngx-formly/core": "^5.12.1",
"apollo-angular": "^1.10.0",
"apollo-angular-link-http": "^1.11.0",
"apollo-cache-inmemory": "^1.6.5",
"apollo-client": "^2.6.8",
"apollo-link": "~1.2.12",
"bootstrap": "4.6.1"
},