stale-optician-85950
09/20/2022, 8:52 PMmysterious-belgium-25713
09/20/2022, 9:01 PMalert-student-86536
09/21/2022, 12:05 AMalert-student-86536
09/21/2022, 12:07 AMalert-student-86536
09/21/2022, 12:09 AMalert-student-86536
09/21/2022, 12:10 AMbroad-rain-59097
09/21/2022, 5:50 AMbroad-rain-59097
09/21/2022, 5:52 AMbroad-rain-59097
09/21/2022, 5:52 AMbroad-rain-59097
09/21/2022, 5:52 AMfull-controller-29537
09/21/2022, 3:33 PMfull-controller-29537
09/21/2022, 3:39 PMmicroscopic-fish-5767
09/21/2022, 6:38 PMlimited-barista-33480
09/21/2022, 9:11 PMbrief-restaurant-78755
09/22/2022, 12:22 AMvictorious-father-41976
09/22/2022, 7:02 AMsetupNodeEvents
. In order to make aliasing work in webpack, those need to be properly configured, and since v10, the plugins are no longer loaded by default.
Here're the links to the docs: https://docs.cypress.io/guides/references/configuration#setupNodeEvents and https://docs.cypress.io/guides/tooling/plugins-guide#Using-a-plugin.wooden-football-97129
09/22/2022, 7:40 AMwooden-football-97129
09/22/2022, 7:49 AMvictorious-father-41976
09/22/2022, 8:02 AMlimited-barista-33480
09/22/2022, 1:39 PMnutritious-megabyte-64190
09/22/2022, 3:22 PMacceptable-hamburger-48790
09/22/2022, 5:10 PMacceptable-hamburger-48790
09/22/2022, 5:11 PMclean-nightfall-72091
09/23/2022, 9:29 AMclass Form{
firstname?: string
lastname?: string
birthplace?: string
constructor(...){...}
setAllWrong(){
this.firstname = ""
this.lastname = ""
this.birthplace = ""
}
}
Now I declare a custom command:
Cypress.Commands.add(
'fill_all_correct',
(data: Form) => {
...
}
)
And define it insinde the `index.ts`:
declare namespace Cypress {
interface Chainable{
fill_all_correct(data: Form): Chainable<Element>,
}
}
Cypress is now giving me a ReferenceError: Form is not defined
when using it inside a test.
specify('Test', () => {
const form= new Form()
...
}
Importing the Form
Class inside the test, command and index file leaves me with an Type 'Chainable' is not generic.
inside the index.ts
. Can anybody identify what I may be doing wrong and what I should do instead ? I hope I could picture the problem for all of you.nutritious-megabyte-64190
09/23/2022, 1:26 PMbrave-river-4142
09/23/2022, 2:19 PMnutritious-megabyte-64190
09/23/2022, 2:32 PMcy.get(`#widget-edit-0-drag-handle`)
.click()
.trigger('mousedown', {which: 1, pageX: 0, pageY: 0});
cy.get(`#widget-edit-0-drag-handle`);
.trigger('mousemove', 100, 100, {force: true})
.trigger('mouseup');
blue-glass-15094
09/23/2022, 5:24 PMminiature-bear-37232
09/23/2022, 8:03 PMdrawerAccordianContent1:
'[data-testid="drawer-accordion-description-1"]',
drawerAccordianContent2:
'[data-testid="drawer-accordion-description-2"]',
drawerAccordianContent3:
'[data-testid="drawer-accordion-description-3"]',
drawerAccordianContent4:
'[data-testid="drawer-accordion-description-4"]',
drawerAccordianContent5:
'[data-testid="drawer-accordion-description-5"]',