Skip to content

Commit 9e56a1a

Browse files
authored
Merge branch 'develop' into r/workspace/authenticator
2 parents aa76c0c + b4023b2 commit 9e56a1a

File tree

6 files changed

+18
-42
lines changed

6 files changed

+18
-42
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
import { AUTH_SIGNIN, ACCOUNT, SPACES_NEW, SPACES_CREATE, SPACES_JOIN } from "@routes/space";
1+
import { AUTH_SIGNIN, ACCOUNT, SPACES_OVERVIEW, SPACES_CREATE } from "@routes/space";
22

33
describe("redirection", () => {
44
it("redirect /account", () => {
55
cy.visit(ACCOUNT);
66
cy.url().should('include', AUTH_SIGNIN);
77
});
8-
it("redirect /spaces/new", () => {
9-
cy.visit(SPACES_NEW);
8+
it("redirect /spaces/overview", () => {
9+
cy.visit(SPACES_OVERVIEW);
1010
cy.url().should('include', AUTH_SIGNIN);
1111
});
1212
it("redirect /spaces/create", () => {
1313
cy.visit(SPACES_CREATE);
1414
cy.url().should('include', AUTH_SIGNIN);
1515
});
16-
it("redirect /spaces/join", () => {
17-
cy.visit(SPACES_JOIN);
18-
cy.url().should('include', AUTH_SIGNIN);
19-
});
2016
});

lumium-space/cypress/e2e/spaces_create.cy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ describe("/spaces/new", () => {
6464
cy.dataCy("passwordConfirmInput").should("be.visible").type(password);
6565
cy.dataCy("nextButton").should("be.visible").click();
6666
cy.dataCy("downloadButton").should("be.visible").click();
67-
cy.dataCy("submitButton").should("be.visible").click();
6867
cy.deleteAccount();
6968
});
7069
});

lumium-space/cypress/e2e/spaces_join.cy.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

lumium-space/cypress/e2e/spaces_new.cy.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { SPACES_CREATE, SPACES_OVERVIEW } from "@routes/space";
2+
3+
describe("/spaces/overview", () => {
4+
it("create button redirection", () => {
5+
cy.signUp().then(() => {
6+
cy.visit(SPACES_OVERVIEW);
7+
cy.dataCy("createButton").should("be.visible").click();
8+
cy.url().should('include', SPACES_CREATE);
9+
cy.deleteAccount();
10+
});
11+
});
12+
});

lumium-space/cypress/support/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ACCOUNT, AUTH_PASSWORD_RESET, AUTH_SIGNIN, AUTH_SIGNUP, SPACES_NEW } from "@routes/space";
1+
import { ACCOUNT, AUTH_PASSWORD_RESET, AUTH_SIGNIN, AUTH_SIGNUP, SPACES_OVERVIEW } from "@routes/space";
22
import { makeid } from "./makeid"
33

44
declare global {
@@ -37,7 +37,7 @@ Cypress.Commands.add("signUp", () => {
3737
cy.dataCy("signUpButton").should("be.visible").click().then(() => {
3838
cy.wait(3000);
3939
cy.getCookie('accessToken').should("not.be.null");
40-
cy.url().should('include', SPACES_NEW);
40+
cy.url().should('include', SPACES_OVERVIEW);
4141
});
4242
return cy.wrap([email, password]);
4343
});
@@ -51,7 +51,7 @@ Cypress.Commands.add("signIn", (email: string, password: string) => {
5151
cy.wait(3000);
5252
cy.getCookie('accessToken').should("not.be.null");
5353
});
54-
cy.url().should('include', SPACES_NEW);
54+
cy.url().should('include', SPACES_OVERVIEW);
5555
});
5656

5757
Cypress.Commands.add("signOut", () => {

0 commit comments

Comments
 (0)