Browse Source

feature and pending steps for changin password

cucumber-rails
JG 3 years ago
parent
commit
357e743ecc
  1. 16
      features/step_definitions/data_coordinator_steps.rb
  2. 9
      features/users/data_coordinator.feature

16
features/step_definitions/data_coordinator_steps.rb

@ -45,3 +45,19 @@ Then("the no links in navigation bar are highlighted") do
expect(page).not_to have_css('[aria-current="page"]', text: "Users")
expect(page).not_to have_css('[aria-current="page"]', text: "About your organisation")
end
When("I click to change my password") do
pending # Write code here that turns the phrase above into concrete actions
end
When("I fill in new password and confirmation") do
pending # Write code here that turns the phrase above into concrete actions
end
When("I click to update my password") do
pending # Write code here that turns the phrase above into concrete actions
end
Then("my password should be updated") do
pending # Write code here that turns the phrase above into concrete actions
end

9
features/users/data_coordinator.feature

@ -13,8 +13,15 @@ Feature: Data Coordinator Features
Then I see information about your organisation
And the about your organisation navigation bar is highlighted
@wip
Scenario: Viewing your account
When I visit the your account page
Then I see information about my account
And the no links in navigation bar are highlighted
@wip
Scenario: Changing your password
When I visit the your account page
And I click to change my password
And I fill in new password and confirmation
And I click to update my password
Then my password should be updated

Loading…
Cancel
Save