Change some test descriptions

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-09-07 18:04:23 +02:00
parent fae7001cac
commit ad30b35e95
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -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" },
+3 -3
View File
@@ -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",
+6 -6
View File
@@ -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 => {
+2 -2
View File
@@ -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");