What does this code mean? I need an explanation #23174
Unanswered
srdjanmutlak
asked this question in
Questions and Help
Replies: 1 comment
-
Hi,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please explain how this code works?
I understand that it's a page object section code. I don't understand why would someone create this kind of code? What would happened if "false" was "true"? Would Cypress then go automatically into the part after ":" ?
Please explain if you saw this before somewhere or if you understand the syntax just by looking at it.
Here's where the full code is from:
https://github.com/srdjanmutlak/Vivify-QA-task/blob/main/Cypress%20testing/cypress/page_objects/createGalleryPage.js
Beta Was this translation helpful? Give feedback.
All reactions