test work and also widgetusertype sb just usertype translation key so changed at back and front

This commit is contained in:
2020-03-31 21:13:05 +00:00
parent 61cf9a9dd4
commit add7d03633
2 changed files with 5 additions and 2 deletions

View File

@@ -169,7 +169,7 @@
item-text="name"
item-value="id"
:readonly="formState.readOnly"
:label="t('WidgetUserType')"
:label="t('UserType')"
ref="usertype"
data-cy="usertype"
:rules="[form().integerValid(this, 'usertype')]"
@@ -704,7 +704,8 @@ function fetchTranslatedText(vm) {
"WidgetSerial",
"WidgetDollarAmount",
"WidgetCount",
"WidgetUserType",
"User",
"UserType",
"WidgetStartDate",
"WidgetEndDate",
"WidgetNotes",

View File

@@ -2,6 +2,7 @@
describe("WIDGET", () => {
it("Performs all crud ops on widget", () => {
var unique = new Date().getTime();
cy.visit("/login");
cy.get("input[name=username]")
@@ -16,6 +17,7 @@ describe("WIDGET", () => {
cy.url().should("include", "/home-dashboard");
cy.visit("/widgets/0");
cy.url().should("include", "/widgets/0");
// cy.get("[data-cy=name]").type("E2E CRUD " + unique);
// // we should be redirected to /dashboard
// cy.url().should("include", "/home-dashboard");