Commit 45d0be83 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Update descriptions and names based on feedback

parent 2078cb4e
module QA module QA
feature 'add deploy key', :core do feature 'deploy keys support', :core do
before do before do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
...@@ -18,15 +18,15 @@ module QA ...@@ -18,15 +18,15 @@ module QA
given(:deploy_key_data) { Runtime::User.ssh_key } given(:deploy_key_data) { Runtime::User.ssh_key }
scenario 'user adds a deploy key' do scenario 'user adds a deploy key' do
Page::Project::Settings::DeployKeys.perform do |deploy_key| Page::Project::Settings::DeployKeys.perform do |page|
deploy_key.fill_new_deploy_key_title(deploy_key_title) page.fill_new_deploy_key_title(deploy_key_title)
deploy_key.fill_new_deploy_key_key(deploy_key_data) page.fill_new_deploy_key_key(deploy_key_data)
deploy_key.add_key page.add_key
end end
Page::Project::Settings::DeployKeys.perform do |deploy_key| Page::Project::Settings::DeployKeys.perform do |page|
expect(deploy_key).to have_key_title(deploy_key_title) expect(page).to have_key_title(deploy_key_title)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment