Giter Site home page Giter Site logo

Comments (10)

JaySunSyn avatar JaySunSyn commented on August 17, 2024

I've added an additional example here: https://github.com/JaySunSyn/cypress-daywalker/blob/master/example/cypress/integration/example.spec.js#L32

cy.get('#nameField').setProp("TEST"); // sets the value property of vaadin-text-field

or

cy.get('vaadin-text-field input').setProp("TEST"); // sets the value of the native input

Does this work?

If not, could you paste your html?

I need to add clear documentation; Will do that as soon as I find some time...

from cypress-daywalker.

eiswind avatar eiswind commented on August 17, 2024

With

cy.get('#nameField').setProp("TEST")

I get 'cannot read property 'store' of undefined.

What if I want to get all the events of typing into the field? Is there a chance that I can do an actual .type() on the input?

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Is there a way you can share (or isolate) your code?

(I would need to overwrite the type command to make it work, will look into that asap)

from cypress-daywalker.

eiswind avatar eiswind commented on August 17, 2024

https://github.com/eiswind/mastering-vaadin-flow-book/tree/cypress

it is in the 04-c module on the cypress branch

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

I didn't run it but try this and let me know pls.

describe('Comic character test', function () {

    before(() => {
        cy.visit('http://localhost:8080/character')
      });

    it('Opens the Character form', function () {
        cy.get('#nameField').setProp("TEST")
    })
})

from cypress-daywalker.

eiswind avatar eiswind commented on August 17, 2024

It seems that it cannot load the js file

:8080/node_modules/cypress-daywalker/cypress-daywalker.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

looks more like a cypress issue with java/spring apps then?

but what looks VERY confusing is that i see output from daywalker in the test report.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Is :8080/node_modules/ the location of your node_modules?

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Pls join https://gitter.im/cypress-daywalker/
Might be a better medium to debug

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Please confirm if this is still the case with version 0.2.1

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Closing this for now, tests are succeeding consistently now as per https://travis-ci.com/JaySunSyn/cypress-daywalker/builds/.

Feel free to re-open.

from cypress-daywalker.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.