Hello,
Right now I have a full suite of tests that run on Test that go through points A…Z
I now need to mirror these A…Z tests against our Test-Production server.
A majority of the feature/scenario tests only differ in that my Test suite uses ‘login_facility’ to access the appropriate sections, while my Test-Production will run ‘production_login_faclity’ like the below.
def prodcution_login_facility
Capybara.app_host = ‘https://website/authenticate’
visit root_path
fill_in ‘password’, with: ‘password123’
click_on ‘Submit’
end
What kind of approach can I take so I don’t duplicate my features, soley to preface them with production_login_facility ?
Thanks,