From 357e743ecc913d5f08e4180bec9822b84815d296 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 23 May 2022 12:44:29 +0100 Subject: [PATCH] feature and pending steps for changin password --- .../step_definitions/data_coordinator_steps.rb | 16 ++++++++++++++++ features/users/data_coordinator.feature | 9 ++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/data_coordinator_steps.rb b/features/step_definitions/data_coordinator_steps.rb index efc8e5e4e..8de6599c2 100644 --- a/features/step_definitions/data_coordinator_steps.rb +++ b/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 diff --git a/features/users/data_coordinator.feature b/features/users/data_coordinator.feature index 37ef99a8a..a7647fd87 100644 --- a/features/users/data_coordinator.feature +++ b/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