Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ae09f8a7
Commit
ae09f8a7
authored
Jan 12, 2018
by
Filipe Freire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-qa !155 push creates event on activity page
parent
16e89580
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
qa/qa/page/activity/activity.rb
qa/qa/page/activity/activity.rb
+18
-0
qa/qa/specs/features/activity/activity_spec.rb
qa/qa/specs/features/activity/activity_spec.rb
+24
-0
No files found.
qa/qa/page/activity/activity.rb
0 → 100644
View file @
ae09f8a7
module
QA
module
Page
module
Activity
class
Activity
<
Page
::
Base
##
# TODO, define all selectors required by this page object
#
# See gitlab-org/gitlab-qa#155
#
view
'app/views/projects/activity.html.haml'
def
go_to_push_events
click_button
'Push events'
end
end
end
end
end
qa/qa/specs/features/activity/activity_spec.rb
0 → 100644
View file @
ae09f8a7
module
QA
feature
'activity page'
,
:core
do
scenario
'push creates an event in the activity page'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Factory
::
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
'awesome-project'
project
.
description
=
'create awesome project test'
end
Factory
::
Repository
::
Push
.
fabricate!
do
|
push
|
push
.
file_name
=
'README.md'
push
.
file_content
=
'# This is a test project'
push
.
commit_message
=
'Add README.md'
end
Page
::
Activity
::
Activity
.
act
{
go_to_push_events
}
expect
(
page
).
to
have_content
(
'Add README.md'
)
expect
(
page
).
to
have_content
(
'pushed to branch master'
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment