magnificent-morning-56777
08/30/2022, 8:14 AMhappy-dinner-13480
08/30/2022, 8:52 AM.find('input')
on a element to find the input elements inside that. but what if I want to find a tr
based on a span inside that tr
?happy-dinner-13480
08/30/2022, 8:57 AMparentsUntil()
is what i neededcold-van-45410
08/30/2022, 9:18 AMhigh-optician-91398
08/30/2022, 9:18 AMacceptable-hamburger-48790
08/30/2022, 9:22 AMmysterious-motherboard-13344
08/30/2022, 9:22 AMhigh-optician-91398
08/30/2022, 9:23 AMhigh-optician-91398
08/30/2022, 9:23 AMhigh-optician-91398
08/30/2022, 9:58 AMacceptable-solstice-90676
08/30/2022, 12:33 PMafterEach()
I want to clear in after()
and I have noticed that cy.clearCookies()
command does not work in after
just in afterEach()
chilly-teacher-56118
08/30/2022, 1:26 PMlimited-barista-33480
08/30/2022, 1:45 PMquaint-winter-32919
08/30/2022, 2:04 PMCypress detected a cross origin error happened on page load:
> Blocked a frame with origin "http://localhost:5002" from accessing a cross-origin frame.
Before the page load, you were bound to the origin policy:
> http://localhost:5002
A cross origin error happens when your application navigates to a new URL which does not match the origin policy above.
A new URL does not match the origin policy if the 'protocol', 'port' (if specified), and/or 'host' (unless of the same superdomain) are different.
Cypress does not allow you to navigate to a different origin URL within a single test.
You may need to restructure some of your test code to avoid this problem.
Alternatively you can also disable Chrome Web Security in Chromium-based browsers which will turn off this restriction by setting { chromeWebSecurity: false } in cypress.config.js.Learn more
even thos I deactivated chromeWebSecurityquaint-winter-32919
08/30/2022, 2:04 PMstale-optician-85950
08/30/2022, 3:09 PMfamous-analyst-30680
08/30/2022, 6:29 PMfamous-analyst-30680
08/30/2022, 6:34 PMstrong-energy-6158
08/31/2022, 4:10 AMchilly-quill-34099
08/31/2022, 6:26 AMdata-testid="myElement
inside the elements app-element-1 > app-element-2
. I tried different combinations using cy.get()
and cy.find()
but wasn't able to find a working combination. So the path to the DOM-Element is app-element-1 > app-element-2 > data-testid="myElement
. Anyone an idea?acceptable-hamburger-48790
08/31/2022, 6:29 AMchilly-quill-34099
08/31/2022, 6:32 AMapp-element-1 > app-element-2 > data-testid="myElement
, there is also app-element-3 > app-element-4 > data-testid="myElement
or app-element-5 > app-element-6 > data-testid="myElement
. In other words, the parents of the data-testid="myElement
element needs to be differentiated.acceptable-hamburger-48790
08/31/2022, 6:35 AMchilly-quill-34099
08/31/2022, 6:36 AMchilly-quill-34099
08/31/2022, 6:48 AMe2e
folder of your docker container. You do that via the parameter -v $PWD:/e2e
. You do that, so that everything in your e2e
-folder locally is available in your container. Is the linking of your e2e
folder done correctly? Is it pointing to the correct folder?chilly-quill-34099
08/31/2022, 8:10 AMproud-breakfast-29892
08/31/2022, 9:57 AMbeforeEach
, I navigate to my designated page by using cy.visit
and then asserting the url contains the page name I wanted to navigate to. Sometimes it doesn't work, even after navigation the url does not contain it. I figured perhaps I use cy.visit
too early in my test, so I tried to intercept all requests prior to navigation and wait for them to be finished. However, these requests aren't consistent and sometimes they won't happen. There is also no "page loaded" event firing when the load has been completed, so I can't rely on that. What can I do to ensure my navigation actually worked?chilly-quill-34099
08/31/2022, 10:09 AMchilly-quill-34099
08/31/2022, 10:15 AMstrong-energy-6158
08/31/2022, 11:24 AM