Skip to content

Commit

Permalink
Updated cy test for 'return'.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Nov 1, 2024
1 parent 6ed82a7 commit 30ee0ae
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions cy/smoke-return.html → cy/return.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
<body>
<div id="diagram" class="diagram">
<pre class="zenuml" style="margin: 0">
Browser->BookController.onPost() {
BookLibService.Borrow(id) {
receipt = process(id1)
if (receipt != null) {
return receipt
@return BookController->Browser: receipt
} else {
return null
@return BookController->Browser: 404
}
self() {
return a_long_value_from_self_call
}
A B C D

A->B.method() {
ret0_assign_rtl =C.method_long_to_give_space {
@return C->D: ret1_annotation_ltr
ret5_assign_ltr = B.method
B.method2 {
return ret2_return_ltr
}
}

return ret2_return_rtl
@return B->A: ret4_annotation_rtl
}

</pre
>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 2 additions & 2 deletions cypress/e2e/return.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-undef */
import "cypress-plugin-snapshots/commands";
describe("Smoke test", function () {
describe("Return functionality", function () {
it("return", function () {
cy.visit("http://127.0.0.1:8080/cy/smoke-return.html");
cy.visit("http://127.0.0.1:8080/cy/return.html");
// This line is to make sure the privacy icon is loaded
cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible");
cy.document().toMatchImageSnapshot({
Expand Down

0 comments on commit 30ee0ae

Please sign in to comment.