1
0
mirror of synced 2026-01-08 03:06:34 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/commands/workspaces.ts
Edmundo Ruiz Ghanem 609541d9ae Migrate cypress tests and commands to TypeScript (#13091)
* Migrate cypress tests and commands to TypeScript

* Cypress added plugins to tsconfig

* Update cypress plugins file to .ts
2022-06-03 13:00:58 -04:00

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);
});
});
};