Update test for change in label dropdown action name

This commit is contained in:
Kushal Pandya 2018-03-12 11:42:30 +05:30
parent 338f5e2a76
commit 0c8510120e
5 changed files with 11 additions and 11 deletions

View file

@ -343,7 +343,7 @@ describe 'Issue Boards', :js do
wait_for_requests
click_link 'Create new label'
click_link 'Create project label'
fill_in('new_label_name', with: 'Testing New Label')

View file

@ -312,12 +312,12 @@ describe 'Issue Boards', :js do
expect(card).not_to have_content(stretch.title)
end
it 'creates new label' do
it 'creates project label' do
click_card(card)
page.within('.labels') do
click_link 'Edit'
click_link 'Create new label'
click_link 'Create project label'
fill_in 'new_label_name', with: 'test label'
first('.suggest-colors-dropdown a').click
click_button 'Create'

View file

@ -24,7 +24,7 @@ describe 'Sub-group project issue boards', :js do
page.within '.labels' do
click_link 'Edit'
click_link 'Create new label'
click_link 'Create project label'
end
page.within '.dropdown-new-label' do

View file

@ -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'

View file

@ -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