summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-12-08 11:05:20 -0700
committerRegis <boudinot.regis@yahoo.com>2016-12-08 11:05:20 -0700
commit473addf14244ba7ae280d1f7b409064e7a22b4bc (patch)
tree372e14a6d136f4a2ccf2c2c59601b4d51e2eb8ef /spec
parent20f74fe7ca6388a2dcc72231e84ed2945d6c4444 (diff)
downloadgitlab-ce-473addf14244ba7ae280d1f7b409064e7a22b4bc.tar.gz
bunch of blocked tests now passing - moving on
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb35
1 files changed, 14 insertions, 21 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index 8c53235e461..e8faa62db96 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -16,28 +16,28 @@ describe "Pipelines", feature: true, js: true do
describe 'GET /:project/pipelines', feature: true, js: true do
include WaitForVueResource
+ let(:project) { create(:project) }
let!(:pipeline) do
create(
:ci_empty_pipeline,
project: project,
ref: 'master',
- status: 'running'
+ status: 'running',
+ sha: project.commit.id,
)
end
[:all, :running, :branches].each do |scope|
context "displaying #{scope}" do
- let(:project) { create(:project) }
-
before do
visit namespace_project_pipelines_path(
project.namespace,
project, scope: scope
)
+ wait_for_vue_resource
end
it do
- wait_for_vue_resource
expect(page).to have_content(pipeline.short_sha)
end
end
@@ -46,6 +46,7 @@ describe "Pipelines", feature: true, js: true do
context 'anonymous access' do
before do
visit namespace_project_pipelines_path(project.namespace, project)
+ wait_for_vue_resource
end
it { expect(page).to have_http_status(:success) }
@@ -59,17 +60,12 @@ describe "Pipelines", feature: true, js: true do
before do
build.run
visit namespace_project_pipelines_path(project.namespace, project)
- end
-
- it do
wait_for_vue_resource
- expect(page).to have_link('Cancel')
end
- it do
- wait_for_vue_resource
- expect(page).to have_selector('.ci-running')
- end
+ it { expect(page).to have_link('Cancel') }
+
+ it { expect(page).to have_selector('.ci-running') }
context 'when canceling' do
before do
@@ -77,15 +73,9 @@ describe "Pipelines", feature: true, js: true do
click_link('Cancel')
end
- it do
- wait_for_vue_resource
- expect(page).not_to have_link('Cancel')
- end
+ it { expect(page).not_to have_link('Cancel') }
- it do
- wait_for_vue_resource
- expect(page).to have_selector('.ci-canceled')
- end
+ it { expect(page).to have_selector('.ci-canceled') }
end
end
@@ -103,7 +93,10 @@ describe "Pipelines", feature: true, js: true do
it { expect(page).to have_selector('.ci-failed') }
context 'when retrying' do
- before { click_link('Retry') }
+ before do
+ wait_for_vue_resource
+ click_link('Retry')
+ end
it { expect(page).not_to have_link('Retry') }
it { expect(page).to have_selector('.ci-running') }