tall-house-12547
03/29/2023, 7:52 PM[data-test=${selector}], ...args)
})
and in the tsconfig.json has the code:
"compilerOptions": {
"types": ["cypress"],
But the system gives the massage: Type 'Chainable' is not generic - and - Property 'getByData' does not exist on type
'cy & CyEventEmitter'
I've run the command 'npm install --save-dev @types/cypress' but it doesn't work.
2. And the second is that I created a second file in the e2e folder. I've already written the followinginto de file but when I run the command npx cypress open just run the first file but not the second, what should I do?
describe("Newsletter Subscribe Form", () => {
beforeEach(() => {
cy.visit("http://localhost:3000")
})
it("allows users to subscribe to the email list", () => {
cy.getByData('email-input').type('tom@aol.com')
})
})
What's wrong?
Thanks in advance.
https://cdn.discordapp.com/attachments/763114122065739818/1090725150267289610/image.png▾
enough-truck-68085
03/29/2023, 8:56 PMhttps://cdn.discordapp.com/attachments/1090725150204362884/1090741326200455229/image.png▾
enough-truck-68085
03/29/2023, 8:57 PMtall-house-12547
03/29/2023, 9:35 PM