Category : cypress

I’m currently using my cypress project, and it seems that at the time that I’m trying to run my test scenarios, I’m having the following issues: Error: Webpack Compilation Error ./cypress/support/commands.js Module not found: Error: Can’t resolve ‘./cypress/fixture/letestLead.json’ in ‘C:UsersaharoDesktopAutomationcb-automation-cypresscypresssupport’ Looked for and couldn’t find the file at the following paths: [C:UsersaharoDesktopAutomationcb-automation-cypresscypresssupportcypressfixtureletestLead.json] [C:UsersaharoDesktopAutomationcb-automation-cypresscypresssupportcypressfixtureletestLead.json.js] [C:UsersaharoDesktopAutomationcb-automation-cypresscypresssupportcypressfixtureletestLead.json.json] [C:UsersaharoDesktopAutomationcb-automation-cypresscypresssupportcypressfixtureletestLead.json.jsx] ..

Read more

I’m in the NETS Norwegian portal (https://www.ident-preprod1.nets.eu/nobankid/index.html?mid=FONYVOMGQZ&urt=6586dd466e404d28a2033fa11105b39e) to enter banking information to automate the creation of a user account on our website. Currently, our website leads to nets to authenticate the user. My code currently does this: enterBankIDInformation() { cy.fixture(‘registrationPlayerFixture’).then((registrationInformation) => { cy.get(‘iframe’).then(($iframe) => { const $body = $iframe.contents().find(‘body’); cy.wrap($body) .find(‘input[type=tel]’, { timeout: 10000 }) ..

Read more

This is the input: I tried this way, but it is not working it(‘Verify form fields’,()=>{ cy.get(‘.content-card>div>form>mat-form-field>div>div:nth-child(1)>.mat-form-field-infix>input’) .should(‘have.length’,2) .then(($el)=>{ expect($el.eq(0)).to.have.class(‘mat-input-element ng-pristine ng-untouched ng-valid’) } ) Please help me to assert ng-touched ng-pristine ng-valid class attribute in cypress? Source: Ask Javascript..

Read more

I am trying to read the value (innerHTML/innerText) property of an element using the following but I get an empty string. cy.get(‘#INGLoanRequests-container’).shadow().find(Selectors.postCode).invoke(‘val’).then(value => { console.log("post code is " + value) }) where postCode is just a css selector. Upon checking the console I see which means the element is being found but the value is ..

Read more

I am trying to automate a web application where I have a login page- eg- test.webapplication.com. After successful login, the url changes and it becomes something like mycm.home.site.com. I am not able to achieve this with cypress within one test. After login, the cypress runner disappears and the test don’t go further to execute. Is ..

Read more

I have been reading the docs about cy.clock and using it with the component testing setup. But I seem to be doing something wrong here it.only(‘shows an estimate on when it is ready (fulfilled)’, () => { const now = new Date() cy.clock(now) mount( <ResizeWrapper> <CartProvider> <PaymentSucceededMessage /> </CartProvider> </ResizeWrapper> ) // Time left cy.contains(’10 ..

Read more