diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-23 15:08:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-23 15:08:41 +0300 |
commit | 097eb364752b8dbb08758e6b7b98a6e4030792c8 (patch) | |
tree | 2cced0bb935a3819f4077eebd96a44f6bbce4ced /spec/features/groups_spec.rb | |
parent | c71c2ba4c29ed3cc483e528a32f34816c98c39f4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/groups_spec.rb')
-rw-r--r-- | spec/features/groups_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/features/groups_spec.rb b/spec/features/groups_spec.rb index ceb4af03f89..fa454cfcc24 100644 --- a/spec/features/groups_spec.rb +++ b/spec/features/groups_spec.rb @@ -127,7 +127,7 @@ RSpec.describe 'Group' do describe 'Mattermost team creation' do before do - stub_mattermost_setting(enabled: mattermost_enabled) + stub_mattermost_setting(enabled: mattermost_enabled, host: 'https://mattermost.test') visit new_group_path click_link 'Create group' @@ -145,13 +145,14 @@ RSpec.describe 'Group' do end it 'updates the team URL on graph path update', :js do - out_span = find('span[data-bind-out="create_chat_team"]', visible: false) + label = find('#group_create_chat_team ~ label[for=group_create_chat_team]') + url = 'https://mattermost.test/test-group' - expect(out_span.text).to be_empty + expect(label.text).not_to match(url) fill_in('group_path', with: 'test-group') - expect(out_span.text).to eq('test-group') + expect(label.text).to match(url) end end |