tests: Use :click-element in editor.feature

This commit is contained in:
Florian Bruhin 2016-08-18 15:38:14 +02:00
parent 0cef4ac2db
commit cc9b776476
2 changed files with 3 additions and 5 deletions

View File

@ -12,6 +12,6 @@
</head>
<body>
<textarea id="qute-textarea"></textarea>
<input type="button" onclick="log_text()" value="Log text">
<input type="button" id="qute-button" onclick="log_text()" value="Log text">
</body>
</html>

View File

@ -61,11 +61,9 @@ Feature: Opening external editors
Scenario: Spawning an editor successfully
When I set up a fake editor returning "foobar"
And I open data/editor.html
And I run :hint all
And I run :follow-hint a
And I run :click-element id qute-textarea
And I wait for "Clicked editable element!" in the log
And I run :open-editor
And I wait for "Read back: foobar" in the log
And I run :hint all
And I run :follow-hint s
And I run :click-element id qute-button
Then the javascript message "text: foobar" should be logged