Bug 33480: Tidy tests

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-09-06 15:05:00 -03:00
parent 23744e7ef1
commit 95b43b6c61
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 12 additions and 4 deletions

View file

@ -295,7 +295,9 @@ describe("Agreement CRUD operations", () => {
// vendor aliases // vendor aliases
cy.get("#agreement_vendor_id .vs__search").click(); cy.get("#agreement_vendor_id .vs__search").click();
cy.get("#agreement_vendor_id #vs1__option-1").contains(vendors[1].name); cy.get("#agreement_vendor_id #vs1__option-1").contains(vendors[1].name);
cy.get("#agreement_vendor_id #vs1__option-1 cite").contains(vendors[1].aliases[0].alias); cy.get("#agreement_vendor_id #vs1__option-1 cite").contains(
vendors[1].aliases[0].alias
);
cy.contains("Add new period").click(); cy.contains("Add new period").click();
cy.get("#agreements_add").contains("Submit").click(); cy.get("#agreements_add").contains("Submit").click();
@ -543,7 +545,9 @@ describe("Agreement CRUD operations", () => {
//vendor aliases //vendor aliases
cy.get("#agreement_vendor_id .vs__search").click(); cy.get("#agreement_vendor_id .vs__search").click();
cy.get("#agreement_vendor_id #vs1__option-1").contains(vendors[1].name); cy.get("#agreement_vendor_id #vs1__option-1").contains(vendors[1].name);
cy.get("#agreement_vendor_id #vs1__option-1 cite").contains(vendors[1].aliases[0].alias); cy.get("#agreement_vendor_id #vs1__option-1 cite").contains(
vendors[1].aliases[0].alias
);
cy.get("#agreement_is_perpetual_no").should("be.checked"); cy.get("#agreement_is_perpetual_no").should("be.checked");
cy.get("#started_on_0").invoke("val").should("eq", dates["today_iso"]); cy.get("#started_on_0").invoke("val").should("eq", dates["today_iso"]);

View file

@ -115,7 +115,9 @@ describe("License CRUD operations", () => {
// vendor aliases // vendor aliases
cy.get("#license_vendor_id .vs__search").click(); cy.get("#license_vendor_id .vs__search").click();
cy.get("#license_vendor_id #vs1__option-1").contains(vendors[1].name); cy.get("#license_vendor_id #vs1__option-1").contains(vendors[1].name);
cy.get("#license_vendor_id #vs1__option-1 cite").contains(vendors[1].aliases[0].alias); cy.get("#license_vendor_id #vs1__option-1 cite").contains(
vendors[1].aliases[0].alias
);
cy.get("#license_vendor_id .vs__search").type( cy.get("#license_vendor_id .vs__search").type(
vendors[0].name + "{enter}", vendors[0].name + "{enter}",
@ -217,7 +219,9 @@ describe("License CRUD operations", () => {
//vendor aliases //vendor aliases
cy.get("#license_vendor_id .vs__search").click(); cy.get("#license_vendor_id .vs__search").click();
cy.get("#license_vendor_id #vs1__option-1").contains(vendors[1].name); cy.get("#license_vendor_id #vs1__option-1").contains(vendors[1].name);
cy.get("#license_vendor_id #vs1__option-1 cite").contains(vendors[1].aliases[0].alias); cy.get("#license_vendor_id #vs1__option-1 cite").contains(
vendors[1].aliases[0].alias
);
cy.get("#license_description").should( cy.get("#license_description").should(
"have.value", "have.value",