Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Change some test descriptions
Sebastian Martinez committed 3 years ago
commit ad30b35e95b9f7f053428d62f98403e14457a9ef
parent fae7001cac9ea472bcb72f7cff4ef888d7785fbf
4 files changed +13 -13
modified cypress/e2e/home.spec.ts
@@ -1,8 +1,8 @@
/// <reference types="cypress" />
import { MockProvider } from "@rsksmart/mock-web3-provider";

-
describe("Landing page", () => {
-
  it("Loads projects", () => {
+
describe("landing page", () => {
+
  it("displays correctly projects", () => {
    cy.intercept(
      { pathname: "/v1/projects/*" },
      { fixture: "projectInfo.json" },
modified cypress/e2e/projectCommits.spec.ts
@@ -51,7 +51,7 @@ const groupedCommits = [
  },
];

-
describe("Project commits", () => {
+
describe("project commits", () => {
  beforeEach(() => {
    cy.intercept("/", {
      fixture: "projectHome.json",
@@ -84,7 +84,7 @@ describe("Project commits", () => {
    ).as("seedCommit");
  });

-
  it("Commit group & commit trailer", () => {
+
  it("display commit groups and commit trailers", () => {
    cy.visit(
      "/seeds/willow.radicle.garden/rad:git:hnrk8mbpirp7ua7sy66o4t9soasbq4y8uwgoy/history",
      {
@@ -144,7 +144,7 @@ describe("Project commits", () => {
    cy.get(".commit").last().click();
  });

-
  it("Commit detail view", () => {
+
  it("display commit details", () => {
    cy.location().should(location => {
      expect(location.pathname).to.eq(
        "/seeds/willow.radicle.garden/rad:git:hnrk8mbpirp7ua7sy66o4t9soasbq4y8uwgoy/commits/cbf5df499ab4f4a908f1756fbe2c236a4530516a",
modified cypress/e2e/projectHeader.spec.ts
@@ -2,7 +2,7 @@
/// <reference types="cypress" />
import { MockProvider } from "@rsksmart/mock-web3-provider";

-
describe("Project header", () => {
+
describe("project header", () => {
  beforeEach(() => {
    cy.intercept("/", {
      fixture: "projectHome.json",
@@ -91,7 +91,7 @@ describe("Project header", () => {
    cy.get("div.clone-button").click();
  });

-
  it("Peer Selector", () => {
+
  it("lets user change peer", () => {
    cy.get("div.selector").click();
    cy.get("div.dropdown-item")
      .contains(
@@ -119,7 +119,7 @@ describe("Project header", () => {
    cy.get("div.stat.peer span.badge").should("have.text", "delegate");
  });

-
  it("Branch selector", () => {
+
  it("lets user on a specific peer change branches", () => {
    cy.get("div.commit div.stat.branch").click();
    cy.get("div.dropdown-item")
      .first()
@@ -137,7 +137,7 @@ describe("Project header", () => {
    cy.get("div.hash.desktop").should("have.text", "cbf5df4");
  });

-
  it("Commits button", () => {
+
  it("navigate to commit history", () => {
    cy.get("div.stat.commit-count").should("not.have.class", "active").click();
    cy.wait(["@projectTreecbf5df4", "@projectCommits"]);
    cy.location().should(location => {
@@ -148,7 +148,7 @@ describe("Project header", () => {
    cy.get("div.stat.commit-count").should("have.class", "active");
  });

-
  it("Issues button", () => {
+
  it("navigate to issues listing", () => {
    cy.get("div.stat.issue-count").click();
    cy.wait(["@projectTreecbf5df4", "@projectIssues"]);
    cy.location().should(location => {
@@ -159,7 +159,7 @@ describe("Project header", () => {
    cy.get("div.stat.issue-count").should("have.class", "active");
  });

-
  it("Patches button", () => {
+
  it("navigate to patches listing", () => {
    cy.get("div.stat.patch-count").click();
    cy.wait(["@projectTree56e4e02", "@projectPatches"]);
    cy.location().should(location => {
modified cypress/e2e/projectRoot.spec.ts
@@ -2,8 +2,8 @@
/// <reference types="cypress" />
import { MockProvider } from "@rsksmart/mock-web3-provider";

-
describe("Root", () => {
-
  it("Meta", () => {
+
describe("project meta", () => {
+
  it("displays the correct project information", () => {
    cy.intercept("https://willow.radicle.garden:8777/", {
      fixture: "projectHome.json",
    }).as("projectHome");