diff options
Diffstat (limited to 'spec/support/shared_examples/features/sidebar')
-rw-r--r-- | spec/support/shared_examples/features/sidebar/sidebar_labels_shared_examples.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/support/shared_examples/features/sidebar/sidebar_labels_shared_examples.rb b/spec/support/shared_examples/features/sidebar/sidebar_labels_shared_examples.rb index 8ebec19a884..c2d144bef3b 100644 --- a/spec/support/shared_examples/features/sidebar/sidebar_labels_shared_examples.rb +++ b/spec/support/shared_examples/features/sidebar/sidebar_labels_shared_examples.rb @@ -86,7 +86,7 @@ RSpec.shared_examples 'labels sidebar widget' do context 'creating a label', :js do before do page.within(labels_widget) do - page.find('[data-testid="create-label-button"]').click + click_button 'Create project label' end end @@ -96,12 +96,11 @@ RSpec.shared_examples 'labels sidebar widget' do end end - it 'creates new label', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/391240' do + it 'creates new label' do page.within(labels_widget) do fill_in 'Name new label', with: 'wontfix' - page.find('.suggest-colors a', match: :first).click - page.find('button', text: 'Create').click - wait_for_requests + click_link 'Magenta-pink' + click_button 'Create' expect(page).to have_content 'wontfix' end |