Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:08:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:08:43 +0300
commitf5f1f221ba08228dbbdd7080509028a7cac2fce2 (patch)
tree7a95ad0d16829f719c429276a8ed4ddaa097392a /spec/features/cycle_analytics_spec.rb
parent1ad2f1981f05721d92d04c490cfc0f234737fec1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/cycle_analytics_spec.rb')
-rw-r--r--spec/features/cycle_analytics_spec.rb25
1 files changed, 13 insertions, 12 deletions
diff --git a/spec/features/cycle_analytics_spec.rb b/spec/features/cycle_analytics_spec.rb
index d0f8767884e..418247c88aa 100644
--- a/spec/features/cycle_analytics_spec.rb
+++ b/spec/features/cycle_analytics_spec.rb
@@ -6,6 +6,7 @@ RSpec.describe 'Value Stream Analytics', :js do
let_it_be(:user) { create(:user) }
let_it_be(:guest) { create(:user) }
let_it_be(:project) { create(:project, :repository) }
+ let_it_be(:stage_table_selector) { '[data-testid="vsa-stage-table"]' }
let(:issue) { create(:issue, project: project, created_at: 2.days.ago) }
let(:milestone) { create(:milestone, project: project) }
@@ -119,13 +120,13 @@ RSpec.describe 'Value Stream Analytics', :js do
end
it 'needs permissions to see restricted stages' do
- expect(find('.stage-events')).to have_content(issue.title)
+ expect(find(stage_table_selector)).to have_content(issue.title)
click_stage('Code')
- expect(find('.stage-events')).to have_content('You need permission.')
+ expect(find(stage_table_selector)).to have_content('You need permission.')
click_stage('Review')
- expect(find('.stage-events')).to have_content('You need permission.')
+ expect(find(stage_table_selector)).to have_content('You need permission.')
end
end
@@ -154,21 +155,21 @@ RSpec.describe 'Value Stream Analytics', :js do
end
def expect_issue_to_be_present
- expect(find('.stage-events')).to have_content(issue.title)
- expect(find('.stage-events')).to have_content(issue.author.name)
- expect(find('.stage-events')).to have_content("##{issue.iid}")
+ expect(find(stage_table_selector)).to have_content(issue.title)
+ expect(find(stage_table_selector)).to have_content(issue.author.name)
+ expect(find(stage_table_selector)).to have_content("##{issue.iid}")
end
def expect_build_to_be_present
- expect(find('.stage-events')).to have_content(@build.ref)
- expect(find('.stage-events')).to have_content(@build.short_sha)
- expect(find('.stage-events')).to have_content("##{@build.id}")
+ expect(find(stage_table_selector)).to have_content(@build.ref)
+ expect(find(stage_table_selector)).to have_content(@build.short_sha)
+ expect(find(stage_table_selector)).to have_content("##{@build.id}")
end
def expect_merge_request_to_be_present
- expect(find('.stage-events')).to have_content(mr.title)
- expect(find('.stage-events')).to have_content(mr.author.name)
- expect(find('.stage-events')).to have_content("!#{mr.iid}")
+ expect(find(stage_table_selector)).to have_content(mr.title)
+ expect(find(stage_table_selector)).to have_content(mr.author.name)
+ expect(find(stage_table_selector)).to have_content("!#{mr.iid}")
end
def click_stage(stage_name)