Commit 68a0396f authored by Dan Davison's avatar Dan Davison

Merge branch 'dj-add-pages-pipeline-e2e-spec' into 'master'

Add Jekyll GitLab Pages E2E smoke spec

See merge request gitlab-org/gitlab!44653
parents c3cdbc57 3b225a63
...@@ -48,7 +48,10 @@ export default { ...@@ -48,7 +48,10 @@ export default {
<ci-icon :status="pipeline.details.status" class="vertical-align-middle" /> <ci-icon :status="pipeline.details.status" class="vertical-align-middle" />
<span class="font-weight-bold">{{ s__('Job|Pipeline') }}</span> <span class="font-weight-bold">{{ s__('Job|Pipeline') }}</span>
<gl-link :href="pipeline.path" class="js-pipeline-path link-commit qa-pipeline-path" <gl-link
:href="pipeline.path"
class="js-pipeline-path link-commit"
data-qa-selector="pipeline_path"
>#{{ pipeline.id }}</gl-link >#{{ pipeline.id }}</gl-link
> >
<template v-if="hasRef"> <template v-if="hasRef">
......
...@@ -12,7 +12,7 @@ module QA ...@@ -12,7 +12,7 @@ module QA
end end
view 'app/assets/javascripts/jobs/components/stages_dropdown.vue' do view 'app/assets/javascripts/jobs/components/stages_dropdown.vue' do
element :pipeline_path element :pipeline_path, required: true
end end
view 'app/assets/javascripts/jobs/components/sidebar.vue' do view 'app/assets/javascripts/jobs/components/sidebar.vue' do
......
...@@ -77,7 +77,7 @@ module QA ...@@ -77,7 +77,7 @@ module QA
end end
def click_job(job_name) def click_job(job_name)
click_element(:job_link, text: job_name) click_element(:job_link, Project::Job::Show, text: job_name)
end end
def expand_child_pipeline def expand_child_pipeline
......
# frozen_string_literal: true
module QA
RSpec.describe 'Release', :smoke, :runner do
describe 'Pages' do
let!(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'jekyll-pages-project'
project.template_name = :jekyll
end
end
let(:pipeline) do
Resource::Pipeline.fabricate_via_api! do |pipeline|
pipeline.project = project
pipeline.variables =
{ key: :CI_PAGES_DOMAIN, value: 'nip.io', variable_type: :env_var },
{ key: :CI_PAGES_URL, value: 'http://127.0.0.1.nip.io', variable_type: :env_var }
end
end
before do
Flow::Login.sign_in
Resource::Runner.fabricate_via_api! do |runner|
runner.project = project
runner.executor = :docker
end
pipeline.visit!
end
it 'runs a Pages-specific pipeline' do
Page::Project::Pipeline::Show.perform do |show|
expect(show).to have_job(:pages)
show.click_job(:pages)
end
Page::Project::Job::Show.perform do |show|
expect(show).to have_passed
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment