mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Wait for route interception in home.spec.ts
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -3,31 +3,10 @@ import { MockProvider } from "@rsksmart/mock-web3-provider";
|
||||
|
||||
describe("Landing page", () => {
|
||||
it("Loads projects", () => {
|
||||
cy.intercept("https://willow.radicle.garden:8777/", {
|
||||
fixture: "projectHome.json",
|
||||
});
|
||||
cy.intercept("https://willow.radicle.garden:8777/v1/peer", {
|
||||
fixture: "projectPeer.json",
|
||||
});
|
||||
cy.intercept("https://pine.radicle.garden:8777/", {
|
||||
fixture: "projectHome.json",
|
||||
});
|
||||
cy.intercept("https://pine.radicle.garden:8777/v1/peer", {
|
||||
fixture: "projectPeer.json",
|
||||
});
|
||||
cy.intercept("https://maple.radicle.garden:8777/", {
|
||||
fixture: "projectHome.json",
|
||||
});
|
||||
cy.intercept("https://maple.radicle.garden:8777/v1/peer", {
|
||||
fixture: "projectPeer.json",
|
||||
});
|
||||
cy.intercept("https://maple.radicle.garden:8777/v1/projects/*", {
|
||||
fixture: "projectInfo.json",
|
||||
});
|
||||
cy.intercept(
|
||||
{ pathname: "/v1/projects/*" },
|
||||
{ fixture: "projectInfo.json" },
|
||||
);
|
||||
).as("projectInfo");
|
||||
cy.visit("/", {
|
||||
onBeforeLoad(win) {
|
||||
const address = "0xB98bD7C7f656290071E52D1aA617D9cB4467Fd6D";
|
||||
@@ -40,6 +19,7 @@ describe("Landing page", () => {
|
||||
});
|
||||
},
|
||||
});
|
||||
cy.wait("@projectInfo");
|
||||
cy.get(".project .name")
|
||||
.first()
|
||||
.should("have.text", "bright-forest-protocol");
|
||||
|
||||
Reference in New Issue
Block a user