Add tests for last commit info on project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
9fd4822986
commit
d1450af81f
|
@ -513,6 +513,8 @@ pre.light-well {
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-last-commit {
|
.project-last-commit {
|
||||||
|
margin: 0 7px;
|
||||||
|
|
||||||
.ci-status {
|
.ci-status {
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,12 @@ Feature: Project
|
||||||
And I visit project "Shop" page
|
And I visit project "Shop" page
|
||||||
Then I should see project "Shop" README
|
Then I should see project "Shop" README
|
||||||
|
|
||||||
|
Scenario: I should see last commit with CI
|
||||||
|
Given project "Shop" has CI enabled
|
||||||
|
Given project "Shop" has CI build
|
||||||
|
And I visit project "Shop" page
|
||||||
|
And I should see last commit with CI status
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: I should see project activity
|
Scenario: I should see project activity
|
||||||
When I visit project "Shop" activity page
|
When I visit project "Shop" activity page
|
||||||
|
|
|
@ -206,4 +206,11 @@ module SharedProject
|
||||||
project = Project.find_by(name: "Shop")
|
project = Project.find_by(name: "Shop")
|
||||||
create :ci_commit, gl_project: project, sha: project.commit.sha
|
create :ci_commit, gl_project: project, sha: project.commit.sha
|
||||||
end
|
end
|
||||||
|
|
||||||
|
step 'I should see last commit with CI status' do
|
||||||
|
page.within ".project-last-commit" do
|
||||||
|
expect(page).to have_content(project.commit.sha[0..6])
|
||||||
|
expect(page).to have_content("skipped")
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue