Add user login front-end integration test

This commit is contained in:
Belén Albeza 2024-04-18 17:36:07 +02:00
parent b14b8f794a
commit c33d4ff3e2
14 changed files with 172 additions and 1 deletions

View file

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