brash-cpu-33893
09/26/2022, 5:51 PMfancy-mechanic-10638
09/26/2022, 5:52 PMapplication/xml
?brash-cpu-33893
09/26/2022, 5:52 PMbrash-cpu-33893
09/26/2022, 5:52 PMfancy-mechanic-10638
09/26/2022, 5:54 PMbrash-cpu-33893
09/26/2022, 5:57 PMfancy-mechanic-10638
09/26/2022, 5:57 PMbrash-cpu-33893
09/26/2022, 5:58 PMfancy-mechanic-10638
09/26/2022, 5:59 PMxml
property with the XML value.brash-cpu-33893
09/26/2022, 6:02 PMbrash-cpu-33893
09/26/2022, 6:55 PMlate-planet-4481
09/26/2022, 6:58 PM.then()
after the command that results in an expandable group, then I run document.getElementsByClassName('command-expander-column')[0].click()
. This works perfectly in the Chrome console, but when the test is running the resulting array is empty. Does anyone understand why it behaves this way?fancy-mechanic-10638
09/26/2022, 6:59 PMcy.get('.command-expander-column').eq(0).click()
?late-planet-4481
09/26/2022, 7:00 PMlate-planet-4481
09/26/2022, 7:12 PMwindow.top.document.getElementsByClassName('command-expander-column')[0].click()
gentle-byte-6745
09/26/2022, 8:48 PMfancy-mechanic-10638
09/26/2022, 11:43 PMcy.intercept
that code will run if it is called, but I want to ensure it's not called.echoing-book-65002
09/27/2022, 12:01 AMfancy-mechanic-10638
09/27/2022, 12:11 AM.click().then(() => ...)
so that the item actually existed. You could also add a timeout param to the cy.get
call for the dialog.echoing-book-65002
09/27/2022, 1:30 AMcy.get('[data-testid=open-document]', {timeout : 60000}).click().then(($div) => {
cy.wrap($div)
.find('[data-testid=document-dialog] h3')
.should('have.text', 'bankStatement.html')
cy.on("uncaught:exception", () => {
return false;
});
});
echoing-book-65002
09/27/2022, 1:43 AMfancy-mechanic-10638
09/27/2022, 4:04 AM$div
there entirely. Do a cy.get
against the new item that should have appeared.echoing-book-65002
09/27/2022, 4:43 AMfancy-mechanic-10638
09/27/2022, 6:32 AMechoing-book-65002
09/27/2022, 6:36 AMechoing-book-65002
09/27/2022, 6:38 AMvictorious-father-41976
09/27/2022, 9:04 AMgentle-accountant-4760
09/27/2022, 9:27 AMbrief-kite-35331
09/27/2022, 9:46 AMbrash-cpu-33893
09/27/2022, 9:53 AM