From fae42270c4cb4ac4c9b637dac00a585988e3151e Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Thu, 28 Jun 2018 13:24:54 +0000 Subject: Resolve "No UI element to edit group label" --- spec/features/groups/labels/index_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spec/features/groups/labels/index_spec.rb (limited to 'spec/features') diff --git a/spec/features/groups/labels/index_spec.rb b/spec/features/groups/labels/index_spec.rb new file mode 100644 index 00000000000..6c1b43a9013 --- /dev/null +++ b/spec/features/groups/labels/index_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +feature 'Group labels' do + let(:user) { create(:user) } + let(:group) { create(:group) } + let!(:label) { create(:group_label, group: group) } + + background do + group.add_owner(user) + sign_in(user) + visit group_labels_path(group) + end + + scenario 'label has edit button', :js do + expect(page).to have_selector('.label-action.edit') + end +end -- cgit v1.2.1