Open BillyRayPreachersSon opened 6 years ago
The fillIn
helper in ember-cli-page-object isn't a perfect imitation of all the events that real user interactions tend to produce. You could try using ember-native-dom-helpers
to see if a more accurate facsimile does the trick.
This addon also ships with a page object implementation you could try using. Take a look at the component integration tests to see how it's used.
Hi, not sure if that's still applicable..
ember-cli-page-object currently supports both ember-native-dom-helpers
and ember/test-helpers.
The legacy Ember's moduleForComponent
is the only mode where the page object does its own craft in order to imitate user interactions, like fillIn
, etc..
I want use test helpers without use ember-cli-page-object
- https://github.com/dfreeman/ember-ace/issues/34
We're using the following versions in
package.json
:We've got a page object that defines a selector to the editor:
And an acceptance test that fills in some text and saves the form:
That all works, and the entered value gets sent back from the form as expected.
However, if I want to set the value to something else later in the test:
then what actually gets sent to the server is a concatenation of both strings (which is also what is visible in the editor), so in the case of this example, it would be
Some valueA new value
.Is there a way to clear the editor in an acceptance test rather then appending to its content?
Thanks!