This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe("Memo features", () => {
|
describe("Reminder features", () => {
|
||||||
it("should work", () => {
|
it("should work", () => {
|
||||||
const dNow = new Date();
|
const dNow = new Date();
|
||||||
const dToday = `${dNow.getFullYear()}-${(dNow.getMonth() + 1)
|
const dToday = `${dNow.getFullYear()}-${(dNow.getMonth() + 1)
|
||||||
|
|||||||
28
e2e/tests/regression/accounting-user/0500-contract-create.js
Normal file
28
e2e/tests/regression/accounting-user/0500-contract-create.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/// <reference types="cypress" />
|
||||||
|
describe("Contract create", () => {
|
||||||
|
it("should work", () => {
|
||||||
|
cy.ayLogin("accounting");
|
||||||
|
|
||||||
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
cy.get("[data-cy=accounting]").click();
|
||||||
|
cy.get("[data-cy='nav/svc-contracts']").click();
|
||||||
|
cy.url().should("include", "/svc-contracts");
|
||||||
|
cy.get("[data-cy=contractsTable]");
|
||||||
|
cy.get("[data-cy='contract-list:new']:first").click();
|
||||||
|
cy.get("[data-cy=name]").type(
|
||||||
|
`${Cypress.config("cyid")}-test-contract{enter}`
|
||||||
|
);
|
||||||
|
cy.get("[data-cy='responseTime:days']").type("7");
|
||||||
|
cy.get("[data-cy='partsOverridePct']").type("2");
|
||||||
|
cy.get("[data-cy='serviceRatesOverridePct']").type("3");
|
||||||
|
cy.get("[data-cy='travelRatesOverridePct']").type("4");
|
||||||
|
cy.get("[data-cy=notes]").type(`Test contract NOTES!!!{enter}eot{enter}`);
|
||||||
|
cy.get("[data-cy=alertNotes]").type(
|
||||||
|
`Test contract alert message{enter}eot{enter}`
|
||||||
|
);
|
||||||
|
cy.get("[data-cy='contract-edit:save'] > .v-btn__content").click();
|
||||||
|
cy.get("[data-cy=navicon]").click();
|
||||||
|
cy.get("[data-cy='nav/svc-contracts']").click();
|
||||||
|
cy.url().should("include", "/svc-contracts");
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user