future-eye-56254
11/15/2022, 11:40 AMcool-businessperson-53870
11/15/2022, 11:47 AMrough-yacht-92267
11/15/2022, 1:42 PMrough-yacht-92267
11/15/2022, 1:42 PMfresh-doctor-14925
11/15/2022, 2:00 PMrough-yacht-92267
11/15/2022, 2:05 PMfresh-doctor-14925
11/15/2022, 2:12 PMmysterious-belgium-25713
11/15/2022, 2:21 PMacceptable-zebra-54407
11/15/2022, 2:37 PMFailed to fetch dynamically imported module: http://localhost:5173/__cypress/src/cypress/support/component.js
I found some closed Github issues but even upgrading the libraries to the latest version didn't help. I'm not sure how to start debugging thisacceptable-zebra-54407
11/15/2022, 3:04 PMhttp://localhost:5173/__cypress/src/cypress/support/component.js
, it does return a JavaScript modulebitter-jelly-65084
11/15/2022, 3:31 PMbeforeEach(() => {
cy.visitSite();
//cy.visitSite("https://www.bigbinary.com/books/learn-qa-automation-using-cypress/data-cy-conventions");
})
it.only('Scroll', () => {
cy.wait(10000);
cy.window().scrollTo('bottom')
})
Any brainstorming on what types of things could be the issue, would be appreciated.ripe-kite-37554
11/15/2022, 4:12 PMripe-kite-37554
11/15/2022, 4:31 PMpolite-potato-14743
11/15/2022, 4:32 PMadorable-smartphone-87280
11/15/2022, 4:36 PMcy.session()
?adorable-smartphone-87280
11/15/2022, 4:36 PMpolite-potato-14743
11/15/2022, 4:37 PMadorable-smartphone-87280
11/15/2022, 4:37 PMafterEach()
hook in your tests that forces logout.bitter-fountain-36713
11/15/2022, 5:46 PM.scrollTo()
in the docs. It requires being chained off a command that yields DOM element. Your use is incorrect.acceptable-zebra-54407
11/15/2022, 5:55 PM.
in it, but I tried using a different user and still had the same erroracceptable-zebra-54407
11/15/2022, 5:55 PMbitter-jelly-65084
11/15/2022, 8:33 PMfuture-eye-56254
11/15/2022, 8:39 PMmysterious-belgium-25713
11/15/2022, 8:44 PMmysterious-belgium-25713
11/15/2022, 8:45 PMworried-lifeguard-15953
11/15/2022, 10:02 PM<p class="cy">0</p>
<span class="cy">1</span>
<div class="cy">2</div>
How can I do like?
cy.get(".cy").eq(0).should('be.a', 'p')
cy.get(".cy").eq(1).should('be.a', 'span')
cy.get(".cy").eq(2).should('be.a', 'div')
I feel like this is something that's probably stupidly easy, but I can't find any info on it.enough-truck-68085
11/15/2022, 10:26 PMchai-dom
might do what you want, specifically the tagName
assertions
https://www.chaijs.com/plugins/chai-dom/worried-lifeguard-15953
11/15/2022, 10:30 PMworried-lifeguard-15953
11/15/2022, 11:08 PMcy.get('.cy').eq(0).then(($el) => {
expect($el[0].localName.to.be.equal('span');
});
rapid-yak-87393
11/15/2022, 11:27 PMcy.get('p.cy')
as the selector is like a css selector. If theres not a p tag with a cy class then it will fail