mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Change some test descriptions
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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" },
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,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");
|
||||
|
||||
Reference in New Issue
Block a user