mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 07:28:52 +00:00
# Which Problems Are Solved We move the login code to the zitadel repo. # How the Problems Are Solved The login repo is added to ./login as a git subtree pulled from the dockerize-ci branch. Apart from the login code, this PR contains the changes from #10116 # Additional Context - Closes https://github.com/zitadel/typescript/issues/474 - Also merges #10116 - Merging is blocked by failing check because of: - https://github.com/zitadel/zitadel/pull/10134#issuecomment-3012086106 --------- Co-authored-by: Max Peintner <[email protected]> Co-authored-by: Max Peintner <[email protected]> Co-authored-by: Florian Forster <[email protected]>
30 lines
522 B
TypeScript
30 lines
522 B
TypeScript
const url = Cypress.env("CORE_MOCK_STUBS_URL") || "http://localhost:22220/v1/stubs";
|
|
|
|
function removeStub(service: string, method: string) {
|
|
return cy.request({
|
|
url,
|
|
method: "DELETE",
|
|
qs: {
|
|
service,
|
|
method,
|
|
},
|
|
});
|
|
}
|
|
|
|
export function stub(service: string, method: string, out?: any) {
|
|
removeStub(service, method);
|
|
return cy.request({
|
|
url,
|
|
method: "POST",
|
|
body: {
|
|
stubs: [
|
|
{
|
|
service,
|
|
method,
|
|
out,
|
|
},
|
|
],
|
|
},
|
|
});
|
|
}
|