This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
describe("GZ-DATA-TABLE", () => {
|
describe("GZ-DATA-TABLE", () => {
|
||||||
it("Data table works", () => {
|
it("Operations work", () => {
|
||||||
cy.visit("/login");
|
cy.visit("/login");
|
||||||
|
|
||||||
cy.get("input[name=username]")
|
cy.get("input[name=username]")
|
||||||
@@ -24,12 +24,27 @@ describe("GZ-DATA-TABLE", () => {
|
|||||||
//refresh
|
//refresh
|
||||||
cy.get("[data-cy=refresh]").click();
|
cy.get("[data-cy=refresh]").click();
|
||||||
|
|
||||||
//change datafilters
|
|
||||||
cy.get("[data-cy=selectlistview]").type("-{enter}", { force: true });
|
|
||||||
|
|
||||||
//confirm the first column is the widget name
|
//confirm the first column is the widget name
|
||||||
cy.get("thead > tr > th:nth-child(1) > span").contains("Name");
|
cy.get("thead > tr > th:nth-child(1) > span").contains("Name");
|
||||||
|
|
||||||
|
// cy.get('[aria-label="Next page"] > .v-btn__content > .v-icon').click();
|
||||||
|
// cy.get(".v-data-footer__select input:nth-child(2)").type("10{enter}", {
|
||||||
|
// force: true,
|
||||||
|
// });
|
||||||
|
// //confirm rows
|
||||||
|
// cy.get("tbody")
|
||||||
|
// .find("tr")
|
||||||
|
// .should("have.length", 10);
|
||||||
|
|
||||||
|
cy.get(".v-data-footer__select input:nth-child(2)").type("5{enter}", {
|
||||||
|
force: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
//confirm 5 rows
|
||||||
|
cy.get("tbody")
|
||||||
|
.find("tr")
|
||||||
|
.should("have.length", 5);
|
||||||
|
|
||||||
//filter
|
//filter
|
||||||
cy.get("[data-cy=filter]").click();
|
cy.get("[data-cy=filter]").click();
|
||||||
cy.contains("List view");
|
cy.contains("List view");
|
||||||
@@ -44,6 +59,23 @@ describe("GZ-DATA-TABLE", () => {
|
|||||||
//confirm the first column is now the username
|
//confirm the first column is now the username
|
||||||
cy.get("thead > tr > th:nth-child(1) > span").contains("User");
|
cy.get("thead > tr > th:nth-child(1) > span").contains("User");
|
||||||
|
|
||||||
|
//switch back to default filter
|
||||||
|
cy.get("[data-cy=selectlistview]").type("-{enter}", { force: true });
|
||||||
|
|
||||||
|
//open a widget record
|
||||||
|
cy.get("tbody > :nth-child(1) > :nth-child(1)").click();
|
||||||
|
//cy.get(":nth-child(1) > :nth-child(1) > .subtitle-1 > a").click();
|
||||||
|
|
||||||
|
//confirm on widget edit form
|
||||||
|
cy.get('[data-cy="widget-edit:delete"]');
|
||||||
|
|
||||||
|
//go back to widgetlist
|
||||||
|
cy.go("back");
|
||||||
|
|
||||||
|
//new
|
||||||
|
cy.get("[data-cy='widget-list:new']").click();
|
||||||
|
cy.url().should("include", "/widgets/0");
|
||||||
|
|
||||||
//cy.get("thead > tr > th:nth-child(1)").contains("User");
|
//cy.get("thead > tr > th:nth-child(1)").contains("User");
|
||||||
|
|
||||||
// //navigate and confirm
|
// //navigate and confirm
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
describe("HELP DOCS", () => {
|
describe("HELP DOCS", () => {
|
||||||
it("Help docs are accessible", () => {
|
it("is accessible", () => {
|
||||||
cy.visit("http://localhost:7575/docs/");
|
cy.visit("http://localhost:7575/docs/");
|
||||||
cy.contains("WELCOME TO AYANOVA");
|
cy.contains("WELCOME TO AYANOVA");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// https://docs.cypress.io/api/introduction/api.html
|
// https://docs.cypress.io/api/introduction/api.html
|
||||||
|
|
||||||
describe("Login", () => {
|
describe("Login", () => {
|
||||||
it("Successfully logs in navigate and log out", () => {
|
it("Logs in navigates to user options and log out", () => {
|
||||||
cy.visit("/login");
|
cy.visit("/login");
|
||||||
|
|
||||||
cy.get("input[name=username]")
|
cy.get("input[name=username]")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// https://docs.cypress.io/api/introduction/api.html
|
// https://docs.cypress.io/api/introduction/api.html
|
||||||
|
|
||||||
describe("Login", () => {
|
describe("TRANSLATION", () => {
|
||||||
it("Successfully logs in as french user about form works", () => {
|
it("About form works for all default languages", () => {
|
||||||
cy.visit("/login");
|
cy.visit("/login");
|
||||||
|
|
||||||
//FRENCH
|
//FRENCH
|
||||||
|
|||||||
Reference in New Issue
Block a user