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
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-11 03:07:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-11 03:07:58 +0300
commit946d6c5723db8448a541f663b0739ace7f5131d3 (patch)
tree92a318ee65dbb52b77f2bf7b0cbf8f5b21c26a5f /spec
parentddfa6a1f19f1c6847d30314858f1d0ad21de13f9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/features/dashboard/datetime_on_tooltips_spec.rb2
-rw-r--r--spec/features/projects/jobs_spec.rb6
-rw-r--r--spec/frontend/environments/graphql/mock_data.js6
-rw-r--r--spec/frontend/pipelines/linked_pipelines_mock.json127
-rw-r--r--spec/lib/gitlab/ci/status/build/play_spec.rb2
5 files changed, 88 insertions, 55 deletions
diff --git a/spec/features/dashboard/datetime_on_tooltips_spec.rb b/spec/features/dashboard/datetime_on_tooltips_spec.rb
index 880f9ec2b72..c6e78c8b57c 100644
--- a/spec/features/dashboard/datetime_on_tooltips_spec.rb
+++ b/spec/features/dashboard/datetime_on_tooltips_spec.rb
@@ -44,7 +44,7 @@ RSpec.describe 'Tooltips on .timeago dates', :js, feature_category: :user_profil
wait_for_requests
end
- it 'has the datetime formated correctly' do
+ it 'has the datetime formated correctly', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/334481' do
expect(page).to have_selector('[data-testid=snippet-created-at] .js-timeago', text: '1 day ago')
page.find('[data-testid=snippet-created-at] .js-timeago').hover
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index 40562d22a41..67389fdda8a 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -745,11 +745,11 @@ RSpec.describe 'Jobs', :clean_gitlab_redis_shared_state, feature_category: :proj
'You can add CI/CD variables below for last-minute configuration changes before starting the job.'
)
)
- expect(page).to have_button('Trigger this manual action')
+ expect(page).to have_button('Run job')
end
it 'plays manual action and shows pending status', :js do
- click_button 'Trigger this manual action'
+ click_button 'Run job'
wait_for_requests
expect(page).to have_content('This job has not started yet')
@@ -783,7 +783,7 @@ RSpec.describe 'Jobs', :clean_gitlab_redis_shared_state, feature_category: :proj
'You can add CI/CD variables below for last-minute configuration changes before starting the job.'
)
)
- expect(page).to have_button('Trigger this manual action')
+ expect(page).to have_button('Run job')
end
end
diff --git a/spec/frontend/environments/graphql/mock_data.js b/spec/frontend/environments/graphql/mock_data.js
index 0b1c8dc6fb8..5ea0be41614 100644
--- a/spec/frontend/environments/graphql/mock_data.js
+++ b/spec/frontend/environments/graphql/mock_data.js
@@ -166,7 +166,7 @@ export const environmentsApp = {
title: 'Play',
path: '/h5bp/html5-boilerplate/-/jobs/911/play',
method: 'post',
- button_title: 'Trigger this manual action',
+ button_title: 'Run job',
},
},
},
@@ -374,7 +374,7 @@ export const resolvedEnvironmentsApp = {
title: 'Play',
path: '/h5bp/html5-boilerplate/-/jobs/911/play',
method: 'post',
- buttonTitle: 'Trigger this manual action',
+ buttonTitle: 'Run job',
},
},
},
@@ -675,7 +675,7 @@ export const resolvedEnvironment = {
title: 'Play',
path: '/h5bp/html5-boilerplate/-/jobs/1015/play',
method: 'post',
- buttonTitle: 'Trigger this manual action',
+ buttonTitle: 'Run job',
},
},
},
diff --git a/spec/frontend/pipelines/linked_pipelines_mock.json b/spec/frontend/pipelines/linked_pipelines_mock.json
index 8ad19ef4865..a68283032d2 100644
--- a/spec/frontend/pipelines/linked_pipelines_mock.json
+++ b/spec/frontend/pipelines/linked_pipelines_mock.json
@@ -7,7 +7,7 @@
"state": "active",
"avatar_url": "https://assets.gitlab-static.net/uploads/-/system/user/avatar/3585/avatar.png",
"web_url": "https://gitlab.com/axil",
- "status_tooltip_html": "\u003cspan class=\"user-status-emoji has-tooltip\" title=\"I like pizza\" data-html=\"true\" data-placement=\"top\"\u003e\u003cgl-emoji title=\"slice of pizza\" data-name=\"pizza\" data-unicode-version=\"6.0\"\u003e🍕\u003c/gl-emoji\u003e\u003c/span\u003e",
+ "status_tooltip_html": "<span class=\"user-status-emoji has-tooltip\" title=\"I like pizza\" data-html=\"true\" data-placement=\"top\"><gl-emoji title=\"slice of pizza\" data-name=\"pizza\" data-unicode-version=\"6.0\">🍕</gl-emoji></span>",
"path": "/axil"
},
"active": false,
@@ -68,7 +68,7 @@
"title": "Play",
"path": "/gitlab-org/gitlab-runner/-/jobs/72469032/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -104,7 +104,7 @@
"title": "Play",
"path": "/gitlab-org/gitlab-runner/-/jobs/72469032/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -290,7 +290,9 @@
"dropdown_path": "/gitlab-org/gitlab-runner/pipelines/23211253/stage.json?stage=cleanup"
}
],
- "artifacts": [],
+ "artifacts": [
+
+ ],
"manual_actions": [
{
"name": "review-docs-cleanup",
@@ -305,7 +307,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"ref": {
"name": "docs/add-development-guide-to-readme",
@@ -319,7 +323,9 @@
"short_id": "8083eb0a",
"title": "Add link to development guide in readme",
"created_at": "2018-06-05T11:30:48.000Z",
- "parent_ids": ["1d7cf79b5a1a2121b9474ac20d61c1b8f621289d"],
+ "parent_ids": [
+ "1d7cf79b5a1a2121b9474ac20d61c1b8f621289d"
+ ],
"message": "Add link to development guide in readme\n\nCloses https://gitlab.com/gitlab-org/gitlab-runner/issues/3122\n",
"author_name": "Achilleas Pipinellis",
"author_email": "axil@gitlab.com",
@@ -337,7 +343,7 @@
"status_tooltip_html": null,
"path": "/axil"
},
- "author_gravatar_url": "https://secure.gravatar.com/avatar/1d37af00eec153a8333a4ce18e9aea41?s=80\u0026d=identicon",
+ "author_gravatar_url": "https://secure.gravatar.com/avatar/1d37af00eec153a8333a4ce18e9aea41?s=80&d=identicon",
"commit_url": "https://gitlab.com/gitlab-org/gitlab-runner/commit/8083eb0a920572214d0dccedd7981f05d535ad46",
"commit_path": "/gitlab-org/gitlab-runner/commit/8083eb0a920572214d0dccedd7981f05d535ad46"
},
@@ -402,7 +408,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -437,7 +443,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -466,7 +472,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -501,7 +507,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -530,7 +536,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -565,7 +571,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -782,7 +788,9 @@
"dropdown_path": "/gitlab-com/gitlab-docs/pipelines/34993051/stage.json?stage=deploy"
}
],
- "artifacts": [],
+ "artifacts": [
+
+ ],
"manual_actions": [
{
"name": "image:bootstrap",
@@ -809,7 +817,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"project": {
"id": 1794617,
@@ -875,7 +885,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -910,7 +920,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -939,7 +949,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -974,7 +984,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1003,7 +1013,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1038,7 +1048,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1255,7 +1265,9 @@
"dropdown_path": "/gitlab-com/gitlab-docs/pipelines/34993051/stage.json?stage=deploy"
}
],
- "artifacts": [],
+ "artifacts": [
+
+ ],
"manual_actions": [
{
"name": "image:bootstrap",
@@ -1282,7 +1294,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"project": {
"id": 1794617,
@@ -1291,7 +1305,9 @@
"full_name": "GitLab.com / GitLab Docs"
}
},
- "triggered": []
+ "triggered": [
+
+ ]
},
"triggered": [
{
@@ -1352,7 +1368,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1387,7 +1403,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1416,7 +1432,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1451,7 +1467,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1480,7 +1496,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1515,7 +1531,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1732,7 +1748,9 @@
"dropdown_path": "/gitlab-com/gitlab-docs/pipelines/34993051/stage.json?stage=deploy"
}
],
- "artifacts": [],
+ "artifacts": [
+
+ ],
"manual_actions": [
{
"name": "image:bootstrap",
@@ -1759,7 +1777,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"project": {
"id": 1794617,
@@ -1767,7 +1787,10 @@
"full_path": "/gitlab-com/gitlab-docs",
"full_name": "GitLab.com / GitLab Docs"
},
- "triggered": [{}]
+ "triggered": [
+ {
+ }
+ ]
},
{
"id": 34993052,
@@ -1827,7 +1850,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1862,7 +1885,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982853/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1891,7 +1914,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1926,7 +1949,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982854/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -1955,7 +1978,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -1990,7 +2013,7 @@
"title": "Play",
"path": "/gitlab-com/gitlab-docs/-/jobs/114982855/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -2207,7 +2230,9 @@
"dropdown_path": "/gitlab-com/gitlab-docs/pipelines/34993051/stage.json?stage=deploy"
}
],
- "artifacts": [],
+ "artifacts": [
+
+ ],
"manual_actions": [
{
"name": "image:bootstrap",
@@ -2234,7 +2259,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"project": {
"id": 1794617,
@@ -3373,7 +3400,7 @@
"title": "Play",
"path": "/h5bp/html5-boilerplate/-/jobs/545/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
},
"jobs": [
@@ -3409,7 +3436,7 @@
"title": "Play",
"path": "/h5bp/html5-boilerplate/-/jobs/545/play",
"method": "post",
- "button_title": "Trigger this manual action"
+ "button_title": "Run job"
}
}
}
@@ -3467,7 +3494,9 @@
"scheduled": false
}
],
- "scheduled_actions": []
+ "scheduled_actions": [
+
+ ]
},
"ref": {
"name": "master",
@@ -3481,7 +3510,9 @@
"short_id": "bad98c45",
"title": "remove instances of shrink-to-fit=no (#2103)",
"created_at": "2018-12-17T20:52:18.000Z",
- "parent_ids": ["49130f6cfe9ff1f749015d735649a2bc6f66cf3a"],
+ "parent_ids": [
+ "49130f6cfe9ff1f749015d735649a2bc6f66cf3a"
+ ],
"message": "remove instances of shrink-to-fit=no (#2103)\n\ncloses #2102\r\n\r\nPer my findings, the need for it as a default was rectified with the release of iOS 9.3, where the viewport no longer shrunk to accommodate overflow, as was introduced in iOS 9.",
"author_name": "Scott O'Hara",
"author_email": "scottaohara@users.noreply.github.com",
@@ -3490,7 +3521,7 @@
"committer_email": "rob@drunkenfist.com",
"committed_date": "2018-12-17T20:52:18.000Z",
"author": null,
- "author_gravatar_url": "https://www.gravatar.com/avatar/6d597df7cf998d16cbe00ccac063b31e?s=80\u0026d=identicon",
+ "author_gravatar_url": "https://www.gravatar.com/avatar/6d597df7cf998d16cbe00ccac063b31e?s=80&d=identicon",
"commit_url": "http://localhost:3001/h5bp/html5-boilerplate/commit/bad98c453eab56d20057f3929989251d45cd1a8b",
"commit_path": "/h5bp/html5-boilerplate/commit/bad98c453eab56d20057f3929989251d45cd1a8b"
},
@@ -3522,7 +3553,9 @@
"full_name": "Gitlab Org / Gitlab Test"
}
},
- "triggered": [],
+ "triggered": [
+
+ ],
"project": {
"id": 1794617,
"name": "GitLab Docs",
diff --git a/spec/lib/gitlab/ci/status/build/play_spec.rb b/spec/lib/gitlab/ci/status/build/play_spec.rb
index ade07a54877..2c93f842a30 100644
--- a/spec/lib/gitlab/ci/status/build/play_spec.rb
+++ b/spec/lib/gitlab/ci/status/build/play_spec.rb
@@ -75,7 +75,7 @@ RSpec.describe Gitlab::Ci::Status::Build::Play do
end
describe '#action_button_title' do
- it { expect(subject.action_button_title).to eq 'Trigger this manual action' }
+ it { expect(subject.action_button_title).to eq 'Run job' }
end
describe '.matches?' do