polite-policeman-65273
08/16/2022, 6:09 PMid
Any updates on allowing passing {log: false} to cy.session?clean-optician-27186
08/16/2022, 6:54 PMgetObject(someVar)
cy.get('@alias').then((object) => {
//some code using the object here
}
But the problem is, when using TypeScript, I can't treat object
like an object because it is always JQuery. Help?gray-kilobyte-89541
08/16/2022, 7:14 PMgray-kilobyte-89541
08/16/2022, 8:56 PMts
describe('casting an aliased value', () => {
it('yields a number', () => {
// this particular alias keeps a number
cy.wrap(42).as('magic')
cy.get<number>('@magic').then((n) => {
expect(n).to.be.a('number').and.to.equal(42)
})
})
})
Other commands can be cast similarlyglamorous-country-57678
08/16/2022, 8:57 PMclean-optician-27186
08/16/2022, 9:03 PMglamorous-country-57678
08/16/2022, 9:28 PMglamorous-country-57678
08/16/2022, 9:29 PMProperty 'findByText' does not exist on type 'cy & CyEventEmitter'.ts(2339)
ancient-summer-26140
08/16/2022, 10:54 PMtsconfig.json
in my root as well as an isolated one within the cypress directory. I've also spun up a parallel app with create-next-app -ts
and copied all of our dependencies over and installed Cypress. It works fine there.
Another strange note is that if I add type: module
to our package.json
, Cypress will work as expected without errors, but this then breaks the rest of the app because NextJS won't build with type: module
.
Any thoughts? I really want to use Cypress, especially after having gone down this route with another test automation product that didn't end up panning out so it'll be nice to get something working and established.ancient-summer-26140
08/16/2022, 11:07 PMstrong-energy-6158
08/17/2022, 4:51 AMstrong-energy-6158
08/17/2022, 4:57 AMmysterious-motherboard-13344
08/17/2022, 5:26 AMstrong-energy-6158
08/17/2022, 5:28 AMmysterious-motherboard-13344
08/17/2022, 5:30 AMmysterious-motherboard-13344
08/17/2022, 5:32 AMmysterious-motherboard-13344
08/17/2022, 5:33 AMstrong-energy-6158
08/17/2022, 5:37 AMmysterious-motherboard-13344
08/17/2022, 5:45 AMstrong-energy-6158
08/17/2022, 5:46 AMbig-lifeguard-47624
08/17/2022, 8:11 AMvictorious-honey-34966
08/17/2022, 9:22 AMmysterious-motherboard-13344
08/17/2022, 9:25 AMvictorious-honey-34966
08/17/2022, 9:27 AMgray-kilobyte-89541
08/17/2022, 10:54 AMjs
cy.get('.ag-cell-value')
.find('[aria-checked]')
.should('have.prop', 'ariaChecked', value)
victorious-honey-34966
08/17/2022, 11:18 AMenough-teacher-41793
08/17/2022, 12:14 PMacceptable-hamburger-48790
08/17/2022, 12:27 PMadamant-minister-38660
08/17/2022, 12:47 PMmelodic-egg-83620
08/17/2022, 1:04 PM