📎 Add WebSocket mock

This commit is contained in:
AzazelN28 2024-04-25 14:14:46 +02:00
parent 38e35fb5ae
commit 30321e54f0
11 changed files with 589 additions and 24 deletions

View file

@ -0,0 +1,8 @@
export const interceptRPC = (page, path, jsonFilename) =>
page.route(`**/api/rpc/command/${path}`, (route) =>
route.fulfill({
status: 200,
contentType: "application/transit+json",
path: `playwright/fixtures/${jsonFilename}`,
})
);