* Migrate cypress tests and commands to TypeScript * Cypress added plugins to tsconfig * Update cypress plugins file to .ts
11 lines
434 B
TypeScript
11 lines
434 B
TypeScript
export const initialSetupCompleted = (completed = true) => {
|
|
// Modify the workspaces/list response to mark every workspace as "initialSetupComplete" to ensure we're not showing
|
|
// the setup/preference page for any workspace if this method got called.
|
|
cy.intercept("POST", "/api/v1/workspaces/get", (req) => {
|
|
req.continue(res => {
|
|
res.body.initialSetupComplete = completed;
|
|
res.send(res.body);
|
|
});
|
|
});
|
|
};
|