Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I see <#component> with "any text" doesn't recognize the text #37

Closed
silvoneymachado opened this issue Apr 30, 2019 · 2 comments
Closed
Assignees
Labels
to-confirm Idea or problem waiting for confirmation

Comments

@silvoneymachado
Copy link

Example:

      Given that I am in the [Lista de tarefas]
      When I fill <#inputtask2> with "test"
        And I click on <#btnAdicionar>
      Then I see "test"
      Then I click on <#btnEdit>
      Then I see <#btnCancelarEdicao>
        And I see <#inputtask2> with "test"

Console output:

 expected element #inputtask2 to include "test"
      + expected - actual

      +test


  Scenario Steps:

  - I.see("test", "#inputtask2") at Test.Scenario (src\__tests__\e2e\tests\task.js:32:7)
  - I.seeElement("#btnCancelarEdicao") at Test.Scenario (src\__tests__\e2e\tests\task.js:31:7)
  - I.click("#btnEdit") at Test.Scenario (src\__tests__\e2e\tests\task.js:30:7)
  - I.see("test") at Test.Scenario (src\__tests__\e2e\tests\task.js:29:7)
  - I.click("#btnAdicionar") at Test.Scenario (src\__tests__\e2e\tests\task.js:28:7)
  - I.fillField("#inputtask2", "test") at Test.Scenario (src\__tests__\e2e\tests\task.js:27:7)
  - I.amOnPage("http://localhost:4200/") at Test.Scenario (src\__tests__\e2e\tests\task.js:26:7)

@thiagodp thiagodp added the to-confirm Idea or problem waiting for confirmation label Apr 30, 2019
@thiagodp thiagodp self-assigned this Apr 30, 2019
@thiagodp
Copy link
Owner

thiagodp commented Apr 30, 2019

@silvoneymachado It appears that the command was produced correctly:

I.see("test", "#inputtask2")

since Concordia does not know that it is an input field.

You can replace

And I see <#inputtask2> with "test"

with

And I see the input <#inputtask2> with "test"

and the plug-in should generate the following command:

I.seeInField("#inputtask2", "test");

Could you please confirm that? Thank you.

@silvoneymachado
Copy link
Author

Works with And I see the input <#inputtask2> with "test".

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-confirm Idea or problem waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants