diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-24 02:24:52 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-24 02:24:52 -0800 |
commit | 1fa55069745163e70f01349f71798e2a214ae28e (patch) | |
tree | 54c2e7b9bc041ac04f45ec374170f2467d974e28 /spec | |
parent | a43f71ec144c1a8ab9f9829414699cec062a8b92 (diff) | |
download | gitlab-ce-1fa55069745163e70f01349f71798e2a214ae28e.tar.gz |
Add spec for hiding variables and remove the need for ES6 Symbol
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/variables_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/variables_spec.rb b/spec/features/variables_spec.rb index d7880d5778f..ff30ffd7820 100644 --- a/spec/features/variables_spec.rb +++ b/spec/features/variables_spec.rb @@ -29,6 +29,31 @@ describe 'Project variables', js: true do end end + it 'reveals and hides new variable' do + fill_in('variable_key', with: 'key') + fill_in('variable_value', with: 'key value') + click_button('Add new variable') + + page.within('.variables-table') do + expect(page).to have_content('key') + expect(page).to have_content('******') + end + + click_button('Reveal Values') + + page.within('.variables-table') do + expect(page).to have_content('key') + expect(page).to have_content('key value') + end + + click_button('Hide Values') + + page.within('.variables-table') do + expect(page).to have_content('key') + expect(page).to have_content('******') + end + end + it 'deletes variable' do page.within('.variables-table') do find('.btn-variable-delete').click |