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

Failing Cucumber Test #22

Closed
alex0112 opened this issue Oct 27, 2018 · 1 comment
Closed

Failing Cucumber Test #22

alex0112 opened this issue Oct 27, 2018 · 1 comment

Comments

@alex0112
Copy link
Contributor

alex0112 commented Oct 27, 2018

Summary:

On a fresh clone of the project I get a failing test:

Failing Scenarios:
cucumber features/show.feature:47 # Scenario: Also shows last change date for each entry

Steps to reproduce:

  • macOS High Sierra 10.12.6
  • ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
    bundle exec rake spec

Detailed output:

Scenario: Also shows last change date for each entry                                                                                        # features/show.feature:47
    Given A safe exists with master password "my_master_password" and a key "github" with password "github_password" and timestamp "42424242" # features/step_definitions/pws_steps.rb:35
    When I run `pws show` interactively                                                                                                       # aruba-0.5.4/lib/aruba/cucumber.rb:104
    And I type "my_master_password"                                                                                                           # aruba-0.5.4/lib/aruba/cucumber.rb:108
    Then the output should contain "Entries"                                                                                                  # aruba-0.5.4/lib/aruba/cucumber.rb:131
    And the output should contain "github"                                                                                                    # aruba-0.5.4/lib/aruba/cucumber.rb:131
    And the output should contain "71-05-07"                                                                                                  # aruba-0.5.4/lib/aruba/cucumber.rb:131
      expected "Access password safe at /Users/alex/prog/pws/pws-test-45d7e9e2-45c9-4423-93ab-0012c03332b0 | Master password: ACCESS GRANTED\nEntries in /Users/alex/prog/pws/pws-test-45d7e9e2-45c9-4423-93ab-0012c03332b0\n- github 71-05-06\n" to include "71-05-07"
      Diff:
      @@ -1,2 +1,4 @@
      -71-05-07
      +Access password safe at /Users/alex/prog/pws/pws-test-45d7e9e2-45c9-4423-93ab-0012c03332b0 | Master password: ACCESS GRANTED
      +Entries in /Users/alex/prog/pws/pws-test-45d7e9e2-45c9-4423-93ab-0012c03332b0
      +- github 71-05-06
       (RSpec::Expectations::ExpectationNotMetError)
      ./features/support/env.rb:32:in `block in <top (required)>'
      features/show.feature:53:in `And the output should contain "71-05-07"'

@janlelis
Copy link
Owner

I've updated aruba/cucumber/rspec and now those flaky specs are gone \o/. I could also remove all the timeout hacks!

Please re-open this issue if it's still failing on your machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants