mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 22:16:37 +02:00
✨ Add user login front-end integration test
This commit is contained in:
parent
b14b8f794a
commit
c33d4ff3e2
14 changed files with 172 additions and 1 deletions
9
frontend/playwright/helpers/index.js
Normal file
9
frontend/playwright/helpers/index.js
Normal 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}`,
|
||||
});
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue