Reduce flakyness of connect.spec

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-06-09 08:22:53 +02:00
committed by Alexis Sellier
parent 3359d737fa
commit b384052dfa
2 changed files with 38 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"streamId": "k2t6wyse1ukyaidd42gy4h1guy10xcycfe424h13gjxkoupzhssv9j2svmb8rr",
"state": {
"type": 1,
"content": "did:3:kjzl6cwe1jw1481xu9oyww9bhmueqr8f5uryk4xha9jzhj6vi063e0blpnil383",
"metadata": {
"family": "caip10-eip155:1",
"controllers": [
"0x5e813e48a81977c6fdd565ed5097eb600c73c4f0@eip155:1"
]
},
"signature": 2,
"anchorStatus": "ANCHORED",
"log": [
{
"cid": "bafyreiayiqzx3vth6pu5yniakbu7nm4otiab2j4izu2knyvp2hyzbhxte4",
"type": 0
},
{
"cid": "bafyreic6lcoeq5gr3i532focvbiwe7xtajm66nsnoj5i66rmvqexgrjb6y",
"type": 1
},
{
"cid": "bafyreihochpuwo4fg36neapdljruhuzsjkakyvrcmvtxfbzcz3vn2sduye",
"type": 2
}
],
"anchorProof": {
"root": "bafyreigcirwd56d5reel2gn2ndqyshyvbtvtffgqyldefwk4gucnc52lau",
"txHash": "bagjqcgzacitwxfpo6uh5uyoa2cwt2lknpqovc75njw53hgkscxae6jlfytwa",
"chainId": "eip155:1",
"blockNumber": 13015348,
"blockTimestamp": 1628838351
},
"doctype": "caip10-link"
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ describe("MetaMask", () => {
}
});
cy.intercept("POST", "https://api.thegraph.com/subgraphs/name/radicle-dev/radicle-orgs-rinkeby", { data: { safe: null } } );
cy.intercept("https://gateway.ceramic.network/api/v0/streams", new Blob([]));
cy.intercept("https://gateway.ceramic.network/api/v0/streams", { fixture: "ceramicStream.json" });
cy.get("button.connect").click();
cy.get("button.secondary").click();
cy.get("button.address").should("contain", "3256 – 5721");