plain-garden-5374
08/04/2022, 9:20 PMchilly-queen-22182
08/04/2022, 10:22 PMgifted-kite-7128
08/04/2022, 10:31 PMhallowed-florist-3643
08/05/2022, 8:04 AMuser
08/05/2022, 10:14 AMacceptable-hamburger-48790
08/05/2022, 11:39 AMgreen-translator-62505
08/05/2022, 11:53 AMgray-kilobyte-89541
08/05/2022, 11:56 AMglamorous-country-57678
08/05/2022, 2:38 PMfast-ocean-24805
08/05/2022, 2:48 PMbillions-keyboard-46684
08/05/2022, 3:48 PMhigh-raincoat-69564
08/05/2022, 4:29 PM--parallel=$only_when_I_need
, it is just a parameter as any other. Unless it is checked by presence, never triedbillions-keyboard-46684
08/05/2022, 5:59 PMglamorous-country-57678
08/05/2022, 7:59 PMnutritious-honey-65632
08/05/2022, 8:21 PMglamorous-country-57678
08/05/2022, 9:05 PMnutritious-honey-65632
08/05/2022, 9:17 PMfull-wall-14294
08/05/2022, 9:27 PMred-toddler-79937
08/06/2022, 12:20 AMcy.findByTestId('subtotal-price').should('have.text', ' € 7,00 ');
late-planet-4481
08/06/2022, 12:56 AM
in place of the space?red-toddler-79937
08/06/2022, 1:39 AMable-monkey-72947
08/06/2022, 9:30 PM<slot>
in a web components?
I've got cy.get('@content').find('slot').then(slot => ...)
, but don't know what to do next.
I can grab it in the console and called .assignedNodes()
and see what I would like to test against, but calling that function from Cypress I get an error — slot.assignedNodes is not a function
.able-monkey-72947
08/06/2022, 9:31 PM'@content'
is the shadow dom, so I can check if it has the elements but that doesn't quite feel like checking that the component rendered them? I am also new to web components so not 100% sure the least flimsy test for this.able-monkey-72947
08/06/2022, 9:34 PM.invoke(assingedNodes)
fails in the same way.able-monkey-72947
08/06/2022, 9:37 PMslot[0].assignedNodes()
? 🤔
I got it working though.dry-table-21937
08/07/2022, 1:11 PMadorable-analyst-45147
08/08/2022, 7:40 AMtablist
. I want to do something like that to select a certain tab in my tab list on page B:
// Page A
cy.contains('a', 'Page B');
// Trying to find a button on the tablist from page B
cy.findByRole('tablist').contains('button', 'Submenu').click()
The thing is, the tested app doesn't start updating the DOM until it's got the response from the server (when switching to Page B).
As such, on the second line, Cypress will pick the tablist from Page A (which is still displayed when the command is executed), and then will try, for all the duration of the retry, the Submenu
in THAT tablist. Even if in the meantime, Page B, with a tablist
which actually contains that button, appears.
I wonder if there is a way to select something by re-evaluating the actual chain for the whole retry duration, or if I'm stuck? Or doing something wrong?happy-dinner-13480
08/08/2022, 8:57 AMreq.headers
into req.lazyUpdate
during Cypress tests?dry-table-21937
08/08/2022, 11:20 AMhappy-dinner-13480
08/08/2022, 11:22 AM