Skip to content

Commit 307d3cb

Browse files
committed
fix
1 parent 892d2f1 commit 307d3cb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/e2e/tests/settings/ipfs-ens-resolution.spec.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ describe('Settings', function () {
8484
await privacySettings.toggleIpfsGateway();
8585
await privacySettings.toggleEnsDomainResolution();
8686

87-
// Now that we no longer need the MetaMask UI, and want the browser
88-
// to handle the request error, we need to stop the server
89-
await server.forAnyRequest().thenPassThrough({
90-
beforeRequest: (req) => {
91-
console.log('MM Request going to a live server =========', req.url);
92-
return {};
93-
},
94-
});
87+
// Let the request pass through to verify we trigger the error page
88+
await server
89+
.forAnyRequest()
90+
.matching(
91+
(request) => request.headers.host?.toLowerCase() === ENS_NAME,
92+
)
93+
.thenPassThrough();
9594

9695
try {
9796
await driver.openNewPage(ENS_NAME_URL);

0 commit comments

Comments
 (0)