1
0
mirror of synced 2026-01-23 04:02:42 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/commands/workspaces.ts
Sofiia Zaitseva d16f673c87 🪟 🚥 Add tests for verify sync mode options (#16549)
add tests for checking sync mode options
2022-11-30 12:03:23 +02:00

15 lines
512 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);
});
});
cy.on("uncaught:exception", (err, runnable) => {
return false;
});
};