19 lines
566 B
JavaScript
19 lines
566 B
JavaScript
/// <reference types="cypress" />
|
|
describe("Search", () => {
|
|
it("should work", () => {
|
|
|
|
cy.ayLogin("accounting");
|
|
cy.visit("/home-search");
|
|
cy.url().should("include", "/home-search");
|
|
cy.get("[data-cy=phrase]").clear().type("xyz{enter}");
|
|
//check for expected results
|
|
cy.contains("Customer");
|
|
cy.contains("XYZ Accounting");
|
|
cy.contains("Head Office");
|
|
cy.contains("XYZ Head Office");
|
|
|
|
//END OF TEST
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|
|
|