Block access to matrix.org so that tests do not flake on its availability (#2085)

This commit is contained in:
Michael Telatynski 2025-01-21 17:49:19 +00:00 committed by GitHub
parent b0a0eee358
commit a36b1d1ea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,13 @@ export const test = base.extend<Fixtures>({
app.process().stderr.pipe(process.stderr); app.process().stderr.pipe(process.stderr);
await app.firstWindow(); await app.firstWindow();
// Block matrix.org access to ensure consistent tests
const context = app.context();
await context.route("https://matrix.org/**", async (route) => {
await route.abort();
});
await use(app); await use(app);
}, },
page: async ({ app }, use) => { page: async ({ app }, use) => {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB