forked from CringeStudios/element-desktop
Block access to matrix.org so that tests do not flake on its availability (#2085)
This commit is contained in:
parent
b0a0eee358
commit
a36b1d1ea6
@ -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 |
Loading…
x
Reference in New Issue
Block a user