Commit 3d4a7f63 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Prefer local variables over given/let

parent f5efeeb8
module QA
feature 'secret variables support', :core do
given(:variable_key) { 'VARIABLE_KEY' }
given(:variable_value) { 'variable value' }
scenario 'user adds a secret variable' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
variable_key = 'VARIABLE_KEY'
variable_value = 'variable value'
variable = Factory::Resource::SecretVariable.fabricate! do |resource|
resource.key = variable_key
resource.value = variable_value
......
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