wonderful-match-15836
07/27/2022, 8:54 PMabundant-eve-90571
07/28/2022, 1:05 AMhelpful-whale-51255
07/28/2022, 8:08 AMagreeable-painting-90494
07/28/2022, 8:12 AMagreeable-painting-90494
07/28/2022, 8:14 AMcy.get('[id^="\\~C1-0"]')
to match an element with id="~C1-0.0"
agreeable-painting-90494
07/28/2022, 8:14 AMagreeable-painting-90494
07/28/2022, 8:17 AMhandsome-lion-1748
07/28/2022, 11:09 AMesbuild
example from here: https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples and the dummy tests worked.handsome-lion-1748
07/28/2022, 11:22 AMcy get id ~C1 0
to match anenough-author-35578
07/28/2022, 2:01 PMTable
component with sorting functionality. I also have component tests that verify that pressing the sort button of a column actually sorts that column properly.
I had this working in an older version where I used render
and renderHook
from @testing-library/react
and @testing-library/react-hooks
respectively.
I could manage the sorting state in my test using that renderHook
, and re-render the Table component after updating said sorting state.
However, now I am now using Cypress' mount
from cypress/react
instead of that render
fn, and this mount
fn doesn't seem to provide a way to allow me to **re**render my component after updating the state.
Is there a way to rerender (or i guess re**mount**) components using Cypress' mount
that I am missing, or how should I go about fixing this?glamorous-belgium-42380
07/28/2022, 3:12 PMwooden-teacher-96595
07/28/2022, 3:23 PMfamous-restaurant-30435
07/28/2022, 3:25 PMglamorous-belgium-42380
07/28/2022, 3:25 PMwooden-teacher-96595
07/28/2022, 3:27 PMfamous-restaurant-30435
07/28/2022, 3:27 PMwooden-teacher-96595
07/28/2022, 3:27 PMlate-house-1562
07/29/2022, 12:54 AMsh
Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.ts(2584)
I added "lib": ["DOM"],
to my tsconfig.json
in my Cypress folder but that doesn't resolve the TS error.some-angle-80895
07/29/2022, 7:03 AMpurple-afternoon-2408
07/29/2022, 7:47 AMwooden-teacher-96595
07/29/2022, 7:55 AMcy.intercept('POST', '*/sessions').as('login')
cy.get('@login').then(login => {
expect(JSON.stringify(login)).to.deep.contain(401)
wooden-teacher-96595
07/29/2022, 7:56 AMacceptable-hamburger-48790
07/29/2022, 8:22 AMwooden-teacher-96595
07/29/2022, 8:25 AMcy.get('@login').then(login => {
expect(login.response.statusCode).to.be.eq(401)
wooden-teacher-96595
07/29/2022, 8:25 AMpurple-afternoon-2408
07/29/2022, 9:44 AMindex.ts
as this:
closeToast(force?: boolean): Chainable<JQuery<HTMLElement>>;
There is no error on JQuery
, but when running eslint, I get error 'JQuery' is not defined no-undef
purple-afternoon-2408
07/29/2022, 9:45 AM"no-undef": "off"
but it's not working.purple-afternoon-2408
07/29/2022, 9:46 AM"types": ["cypress", "@types/node", "@types/jquery", "jquery", "@types/jqueryui"],
but it's not helping.purple-afternoon-2408
07/29/2022, 9:46 AMpurple-afternoon-2408
07/29/2022, 9:48 AM