RSpec::Expectations::ExpectationNotMetError

ruby

#1

Hi All.

I have error when run test cucumber in circleci, but local on my pc all work fine.

When run bundle exec cucumber -p ci --format junit --out $CIRCLE_TEST_REPORTS/cucumber/junit.xml

I have error:

✘ Admin add and delete api client # features/admin/admin_clients.feature:4
Given I am logged in as “kassi_testperson1” # features/step_definitions/user_steps.rb:24
And I am on main admin page # features/step_definitions/web_steps.rb:60
When I follow “Clients” # features/step_definitions/web_steps.rb:84
And I follow “Add New” # features/step_definitions/web_steps.rb:84
And I press “Save” # features/step_definitions/web_steps.rb:72
Then I should see “Show Delete” # features/step_definitions/web_steps.rb:191
And I follow “Delete” # features/step_definitions/web_steps.rb:84
And I confirm alert popup # features/step_definitions/web_steps.rb:287
Then I should not see “Show Delete” # features/step_definitions/web_steps.rb:208

  expected #has_no_content?("Show Delete") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
  ./features/step_definitions/web_steps.rb:210:in `block (2 levels) in <top (required)>'
  ./features/step_definitions/web_steps.rb:39:in `with_scope'
  ./features/step_definitions/web_steps.rb:209:in `/^(?:|I )should not see "([^"]*)"(?: within "([^"]*)")?$/'
  features/admin/admin_clients.feature:13:in `Then I should not see "Show Delete"'

Any have idea how fix this error?


#2