View | Details | Raw Unified | Return to bug 37273
Collapse All | Expand All

(-)a/t/cypress/integration/ERM/Agreements_spec.ts (-15 / +16 lines)
Lines 534-546 describe("Agreement CRUD operations", () => { Link Here
534
            "get-agreement"
534
            "get-agreement"
535
        );
535
        );
536
        cy.visit("/cgi-bin/koha/erm/agreements");
536
        cy.visit("/cgi-bin/koha/erm/agreements");
537
        let name_link = cy.get(
537
        let id_cell = cy.get("#agreements_list table tbody tr:first td:first");
538
            "#agreements_list table tbody tr:first td:first a"
538
        id_cell.contains(agreement.agreement_id);
539
        );
539
540
        name_link.should(
540
        let name_link = cy
541
            "have.text",
541
            .get("#agreements_list table tbody tr:first td")
542
            agreement.name + " (#" + agreement.agreement_id + ")"
542
            .eq(1)
543
        );
543
            .find("a");
544
        name_link.should("have.text", agreement.name);
544
        name_link.click();
545
        name_link.click();
545
        cy.wait("@get-agreement");
546
        cy.wait("@get-agreement");
546
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
547
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
Lines 618-631 describe("Agreement CRUD operations", () => { Link Here
618
        cy.intercept("GET", "/api/v1/erm/agreements/*", agreement).as(
619
        cy.intercept("GET", "/api/v1/erm/agreements/*", agreement).as(
619
            "get-agreement"
620
            "get-agreement"
620
        );
621
        );
621
        cy.visit("/cgi-bin/koha/erm/agreements");
622
        let id_cell = cy.get("#agreements_list table tbody tr:first td:first");
622
        let name_link = cy.get(
623
        id_cell.contains(agreement.agreement_id);
623
            "#agreements_list table tbody tr:first td:first a"
624
624
        );
625
        let name_link = cy
625
        name_link.should(
626
            .get("#agreements_list table tbody tr:first td")
626
            "have.text",
627
            .eq(1)
627
            agreement.name + " (#" + agreement.agreement_id + ")"
628
            .find("a");
628
        );
629
        name_link.should("have.text", agreement.name);
629
        name_link.click();
630
        name_link.click();
630
        cy.wait("@get-agreement");
631
        cy.wait("@get-agreement");
631
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
632
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
(-)a/t/cypress/integration/ERM/Licenses_spec.ts (-15 / +16 lines)
Lines 246-258 describe("License CRUD operations", () => { Link Here
246
            "get-license"
246
            "get-license"
247
        );
247
        );
248
        cy.visit("/cgi-bin/koha/erm/licenses");
248
        cy.visit("/cgi-bin/koha/erm/licenses");
249
        let name_link = cy.get(
249
        let id_cell = cy.get("#licenses_list table tbody tr:first td:first");
250
            "#licenses_list table tbody tr:first td:first a"
250
        id_cell.contains(license.license_id);
251
        );
251
252
        name_link.should(
252
        let name_link = cy
253
            "have.text",
253
            .get("#licenses_list table tbody tr:first td")
254
            license.name + " (#" + license.license_id + ")"
254
            .eq(1)
255
        );
255
            .find("a");
256
        name_link.should("have.text", license.name);
256
        name_link.click();
257
        name_link.click();
257
        cy.wait("@get-license");
258
        cy.wait("@get-license");
258
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
259
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
Lines 323-335 describe("License CRUD operations", () => { Link Here
323
            "get-license"
324
            "get-license"
324
        );
325
        );
325
        cy.visit("/cgi-bin/koha/erm/licenses");
326
        cy.visit("/cgi-bin/koha/erm/licenses");
326
        let name_link = cy.get(
327
        let id_cell = cy.get("#licenses_list table tbody tr:first td:first");
327
            "#licenses_list table tbody tr:first td:first a"
328
        id_cell.contains(license.license_id);
328
        );
329
329
        name_link.should(
330
        let name_link = cy
330
            "have.text",
331
            .get("#licenses_list table tbody tr:first td")
331
            license.name + " (#" + license.license_id + ")"
332
            .eq(1)
332
        );
333
            .find("a");
334
        name_link.should("have.text", license.name);
333
        name_link.click();
335
        name_link.click();
334
        cy.wait("@get-license");
336
        cy.wait("@get-license");
335
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
337
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
336
- 

Return to bug 37273