Skip to content

Commit

Permalink
Delete stuff we do not use
Browse files Browse the repository at this point in the history
  • Loading branch information
estellecomment committed Nov 3, 2023
1 parent efaffa3 commit 0300230
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 494 deletions.
3 changes: 0 additions & 3 deletions cypress/e2e/login/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ describe("Login", () => {

// For now, the login is run against the default_server_config.m.homeserver.base_url present in config.json.
it("logs in with an existing account and lands on the home screen", () => {
cy.injectAxe();

cy.get("#mx_LoginForm_email", { timeout: 15000 }).should("be.visible");
cy.percySnapshot("Login");
cy.checkA11y();

cy.get("#mx_LoginForm_email").type(username);
cy.get("#mx_LoginForm_password").type(password);
Expand Down
7 changes: 0 additions & 7 deletions cypress/e2e/register/register.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ describe("Registration", () => {
});

it.skip("registers an account and lands on the home screen", () => {
cy.injectAxe();

cy.get(".mx_ServerPicker_change", { timeout: 15000 }).click();
cy.get(".mx_ServerPickerDialog_continue").should("be.visible");
cy.percySnapshot("Server Picker");
cy.checkA11y();

cy.get(".mx_ServerPickerDialog_otherHomeserver").type(homeserverUrl);
cy.get(".mx_ServerPickerDialog_continue").click();
Expand All @@ -43,7 +40,6 @@ describe("Registration", () => {
// Hide the server text as it contains the randomly allocated Synapse port
const percyCSS = ".mx_ServerPicker_server { visibility: hidden !important; }";
cy.percySnapshot("Registration", { percyCSS });
cy.checkA11y();

cy.get("#mx_RegistrationForm_username").type("alice");
cy.get("#mx_RegistrationForm_password").type("totally a great password");
Expand All @@ -53,21 +49,18 @@ describe("Registration", () => {

cy.get(".mx_RegistrationEmailPromptDialog").should("be.visible");
cy.percySnapshot("Registration email prompt", { percyCSS });
cy.checkA11y();
cy.get(".mx_RegistrationEmailPromptDialog button.mx_Dialog_primary").click();

cy.stopMeasuring("create-account");
cy.get(".mx_InteractiveAuthEntryComponents_termsPolicy").should("be.visible");
cy.percySnapshot("Registration terms prompt", { percyCSS });
cy.checkA11y();

cy.get(".mx_InteractiveAuthEntryComponents_termsPolicy input").click();
cy.startMeasuring("from-submit-to-home");
cy.get(".mx_InteractiveAuthEntryComponents_termsSubmit").click();

cy.get(".mx_UseCaseSelection_skip").should("exist");
cy.percySnapshot("Use-case selection screen");
cy.checkA11y();
cy.get(".mx_UseCaseSelection_skip .mx_AccessibleButton").click();

cy.url().should("contain", "/#/home");
Expand Down
89 changes: 0 additions & 89 deletions cypress/support/axe.ts

This file was deleted.

147 changes: 0 additions & 147 deletions cypress/support/bot.ts

This file was deleted.

4 changes: 0 additions & 4 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ import "@percy/cypress";
import "cypress-real-events";

import "./performance";
import "./synapse";
import "./login";
import "./loginToRemoteHomeserver";
import "./labs";
import "./client";
import "./settings";
import "./bot";
import "./clipboard";
import "./util";
import "./app";
Expand All @@ -36,4 +33,3 @@ import "./iframes";
import "./timeline";
import "./network";
import "./composer";
import "./axe";
Loading

0 comments on commit 0300230

Please sign in to comment.