👷 e2e tests for dashboard

Including test for signing/singup, projects, files, teams, and misc
This commit is contained in:
Pablo Alba 2022-01-25 09:33:52 +01:00
parent 26e5d57ced
commit 5103624fe0
32 changed files with 1285 additions and 127 deletions

View file

@ -0,0 +1,71 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright (c) UXBOX Labs SL
*/
"use strict";
describe("onboarding options solo or team", () => {
beforeEach(() => {
cy.demoLogin();
cy.get(".modal-right button").click();
cy.get(".onboarding button").click();
cy.get(".onboarding .skip").click();
});
it("choose solo option", () => {
cy.getBySel("onboarding-welcome-title").should("exist");
cy.getBySel("fly-solo-op").click();
cy.getBySel("onboarding-templates-title").should("exist");
});
it("choose team option and cancel", () => {
cy.getBySel("onboarding-welcome-title").should("exist");
cy.getBySel("team-up-button").click();
cy.getBySel("onboarding-choice-team-up").should("exist");
cy.get("button").click();
cy.getBySel("onboarding-welcome-title").should("exist");
});
it("choose team option, set team name and cancel", () => {
cy.getBySel("onboarding-welcome-title").should("exist");
cy.getBySel("team-up-button").click();
cy.getBySel("onboarding-choice-team-up").should("exist");
cy.get("#name").type("test team");
cy.get("input[type=submit]").first().click();
cy.get("#email").should("exist");
cy.get("button").click();
cy.getBySel("onboarding-welcome-title").should("exist");
});
it("choose team option, set team name and skip", () => {
cy.getBySel("onboarding-welcome-title").should("exist");
cy.getBySel("team-up-button").click();
cy.getBySel("onboarding-choice-team-up").should("exist");
cy.get("#name").type("test team");
cy.get("input[type=submit]").first().click();
cy.get("#email").should("exist");
cy.get(".skip-action").click();
cy.getBySel("onboarding-templates-title").should("exist");
});
it("choose team option, set team name and invite", () => {
cy.getBySel("onboarding-welcome-title").should("exist");
cy.getBySel("team-up-button").click();
cy.getBySel("onboarding-choice-team-up").should("exist");
cy.get("#name").type("test team");
cy.get("input[type=submit]").first().click();
cy.get("#email").should("exist");
cy.get("#email").type("test@test.com");
cy.get("input[type=submit]").first().click();
cy.getBySel("onboarding-templates-title").should("exist");
});
});