diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-03-12 11:42:30 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-03-12 11:42:30 +0530 |
commit | 0c8510120e3b3b9b3369e766865e8c5e7fce037f (patch) | |
tree | d7dd13e27f7321ce4500769db482ec9e89cfb5c7 /spec/features/issues | |
parent | 338f5e2a76aa0611a96600c67ca67ef391b6c453 (diff) | |
download | gitlab-ce-0c8510120e3b3b9b3369e766865e8c5e7fce037f.tar.gz |
Update test for change in label dropdown action name
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/form_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/issues/issue_sidebar_spec.rb | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb index ef6b8edd0ad..38c618d300e 100644 --- a/spec/features/issues/form_spec.rb +++ b/spec/features/issues/form_spec.rb @@ -306,10 +306,10 @@ describe 'New/edit issue', :js do visit new_project_issue_path(sub_group_project) end - it 'creates new label from dropdown' do + it 'creates project label from dropdown' do click_button 'Labels' - click_link 'Create new label' + click_link 'Create project label' page.within '.dropdown-new-label' do fill_in 'new_label_name', with: 'test label' diff --git a/spec/features/issues/issue_sidebar_spec.rb b/spec/features/issues/issue_sidebar_spec.rb index 64b4f9e7e67..b835558b142 100644 --- a/spec/features/issues/issue_sidebar_spec.rb +++ b/spec/features/issues/issue_sidebar_spec.rb @@ -117,22 +117,22 @@ feature 'Issue Sidebar' do end end - it 'shows option to create a new label' do + it 'shows option to create a project label' do page.within('.block.labels') do - expect(page).to have_content 'Create new' + expect(page).to have_content 'Create project' end end - context 'creating a new label', :js do + context 'creating a project label', :js do before do page.within('.block.labels') do - click_link 'Create new' + click_link 'Create project' end end it 'shows dropdown switches to "create label" section' do page.within('.block.labels') do - expect(page).to have_content 'Create new label' + expect(page).to have_content 'Create project label' end end |