Lines 157-165
describe("Infinite scroll", () => {
Link Here
|
157 |
cy.intercept("POST", "/api/v1/erm/agreements", { |
157 |
cy.intercept("POST", "/api/v1/erm/agreements", { |
158 |
statusCode: 201, |
158 |
statusCode: 201, |
159 |
body: agreement, |
159 |
body: agreement, |
160 |
}); |
160 |
}).as("submitForm"); |
161 |
// Submit the form, no error should be thrown as the select has correctly set the license id |
161 |
// Submit the form, no error should be thrown as the select has correctly set the license id |
162 |
cy.get("#agreements_add").contains("Submit").click(); |
162 |
cy.get("#agreements_add").contains("Submit").click(); |
|
|
163 |
cy.wait("@submitForm"); |
163 |
cy.get("main div[class='dialog message']").contains( |
164 |
cy.get("main div[class='dialog message']").contains( |
164 |
"Agreement created" |
165 |
"Agreement created" |
165 |
); |
166 |
); |
Lines 242-249
describe("Infinite scroll", () => {
Link Here
|
242 |
"X-Base-Total-Count": "20", |
243 |
"X-Base-Total-Count": "20", |
243 |
"X-Total-Count": "20", |
244 |
"X-Total-Count": "20", |
244 |
}, |
245 |
}, |
245 |
}); |
246 |
}).as("resetDropdown"); |
246 |
cy.get("#license_id_0 .vs__open-indicator").click(); |
247 |
cy.get("#license_id_0 .vs__open-indicator").click(); |
|
|
248 |
cy.wait("@resetDropdown"); |
247 |
cy.get("#agreement_licenses").click(); |
249 |
cy.get("#agreement_licenses").click(); |
248 |
cy.get("#agreement_license_0").contains("License 50"); |
250 |
cy.get("#agreement_license_0").contains("License 50"); |
249 |
|
251 |
|
250 |
- |
|
|