happy-dinner-13480
09/01/2022, 9:49 AM<app-boolean-lock-toggle>
is not visible because its parent <div.d-md-none.col-2>
has CSS property: display: none
That is sort of true, but the display: none
value is overwritten by the display: block
delightful-microphone-80931
09/01/2022, 10:01 AMhandsome-lion-1748
09/01/2022, 10:54 AMsalmon-kite-6386
09/01/2022, 10:55 AMhandsome-lion-1748
09/01/2022, 10:55 AMgray-kilobyte-89541
09/01/2022, 11:19 AMacceptable-hamburger-48790
09/01/2022, 11:20 AMstale-optician-85950
09/01/2022, 11:28 AMadamant-beard-17074
09/01/2022, 12:05 PMhandsome-lion-1748
09/01/2022, 12:21 PMwide-waiter-58637
09/01/2022, 12:42 PMwooden-parrot-13301
09/01/2022, 12:44 PMwindows.location.assign(url)
I need to test if the url property is correctly defined, so i've disabled the chromeWebSecurity and i'm triggering the function and asserting the cy.location()
.
although it redirects to chrome-error://chromewebdata/
How can i assert the right url?wide-waiter-58637
09/01/2022, 12:46 PMwide-waiter-58637
09/01/2022, 12:46 PMlimited-barista-33480
09/01/2022, 1:32 PMlively-painter-43059
09/01/2022, 1:37 PMexperimentalSessionAndOrigin: true
so we can keep the user logged in, does testIsolation
legacy allow to not having the necessity to cy.visit() between each it()? And if so, do we have to have that option on e2e configuration or at a describe level? We've made some tests and the farthest we got was an error saying this option needed to be on "suite level".
Thank you in advance!alert-area-86576
09/01/2022, 2:43 PMfreezing-piano-2792
09/01/2022, 2:50 PMable-monkey-72947
09/01/2022, 7:17 PM.only
, but when I run the while file I get 3-4 random ones each time that fail with something like cy.focus() failed because it requires a DOM element.
, meaning a that a modal didn't open before Cypress looked for it?able-monkey-72947
09/01/2022, 7:39 PMcy.wait(100)
at the end my highest level beforeEach
works... but I don't love that...bitter-fountain-36713
09/02/2022, 4:47 AMblue-battery-71202
09/02/2022, 7:44 AMhtml
<label data="" class="checkbox">
<span data-v="" class="checkbox-title-wrapper">
<input data-v="" is-checked="true" type="checkbox" name="membership" class="sr-input">
<span data-v="" class="check-icon" data-cypress-el="true"></span><span data-v="" class="fw:bold">Discount </span>
</span>
<span data-v="" class=" mt:8-rem fs:14-rem">Some Text
</span><!----><!---->
</label>
I would want to get the label
here that contains any element with name="membership"
I know that I can get it like cy.get('.checkbox').contains('.checkbox', 'Discount')
but thats only checking the text inside a child element, and yielding the provided parent.handsome-dress-30825
09/02/2022, 8:30 AMsticky-energy-17458
09/02/2022, 9:01 PMacceptable-hamburger-48790
09/03/2022, 12:07 PMacceptable-hamburger-48790
09/03/2022, 12:07 PMcrooked-eye-18474
09/03/2022, 2:27 PMcrooked-eye-18474
09/03/2022, 2:43 PMred-dawn-5427
09/04/2022, 12:17 PMrich-pharmacist-74804
09/05/2022, 6:44 AMcy.dataCy('billingAccount').find('p-dropdown').click().then(opt => {
cy.wrap(opt).children().children().find('li').contains('BA969048 - - Nauenstrasse 55, 4052 Basel, Switzerland').click()
})
cy.dataCy('billingAccount').find('span').should('contain', 'BA969048 - - Nauenstrasse 55, 4052 Basel, Switzerland')
My code works perfectly but the problem is the option is not getting patched after the click()
event happens so my last line code failed.
Your help is highly appreciated.
Thank you