提交 89e367f2 编写于 作者: G Grzegorz Bizon

Add missing feature tests for loading build trace

See #24638
上级 e249a351
......@@ -181,6 +181,7 @@ feature 'Builds', :feature do
visit namespace_project_build_path(project.namespace, project, build)
end
context 'when build has an initial trace' do
it 'loads build trace' do
expect(page).to have_content 'BUILD TRACE'
......@@ -190,6 +191,17 @@ feature 'Builds', :feature do
end
end
context 'when build does not have an initial trace' do
let(:build) { create(:ci_build, pipeline: pipeline) }
it 'loads new trace' do
build.append_trace('build trace', 0)
expect(page).to have_content 'build trace'
end
end
end
feature 'Variables' do
let(:trigger_request) { create(:ci_trigger_request_with_variables) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册