Commit 4b18162b authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix build/permissions.feature tests adding missing steps

parent 447f1e30
...@@ -7,7 +7,7 @@ Feature: Project Builds Permissions ...@@ -7,7 +7,7 @@ Feature: Project Builds Permissions
Scenario: I try to visit build details as guest Scenario: I try to visit build details as guest
Given I am member of a project with a guest role Given I am member of a project with a guest role
When I visit recent build details page When I visit recent build summary page
Then page status code should be 404 Then page status code should be 404
Scenario: I try to visit project builds page as guest Scenario: I try to visit project builds page as guest
...@@ -18,7 +18,7 @@ Feature: Project Builds Permissions ...@@ -18,7 +18,7 @@ Feature: Project Builds Permissions
Scenario: I try to visit build details of internal project without access to builds Scenario: I try to visit build details of internal project without access to builds
Given The project is internal Given The project is internal
And public access for builds is disabled And public access for builds is disabled
When I visit recent build details page When I visit recent build summary page
Then page status code should be 404 Then page status code should be 404
Scenario: I try to visit internal project builds page without access to builds Scenario: I try to visit internal project builds page without access to builds
...@@ -30,7 +30,7 @@ Feature: Project Builds Permissions ...@@ -30,7 +30,7 @@ Feature: Project Builds Permissions
Scenario: I try to visit build details of internal project with access to builds Scenario: I try to visit build details of internal project with access to builds
Given The project is internal Given The project is internal
And public access for builds is enabled And public access for builds is enabled
When I visit recent build details page When I visit recent build summary page
Then I see details of a build Then I see details of a build
And I see build trace And I see build trace
......
...@@ -14,6 +14,10 @@ module SharedBuilds ...@@ -14,6 +14,10 @@ module SharedBuilds
visit namespace_project_build_path(@project.namespace, @project, @build) visit namespace_project_build_path(@project.namespace, @project, @build)
end end
step 'I visit project builds page' do
visit namespace_project_builds_path(@project.namespace, @project)
end
step 'recent build has artifacts available' do step 'recent build has artifacts available' do
artifacts = Rails.root + 'spec/fixtures/ci_build_artifacts.zip' artifacts = Rails.root + 'spec/fixtures/ci_build_artifacts.zip'
archive = fixture_file_upload(artifacts, 'application/zip') archive = fixture_file_upload(artifacts, 'application/zip')
......
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