diff options
author | Rémy Coutable <remy@rymai.me> | 2018-12-13 15:13:33 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-12-13 15:13:38 +0100 |
commit | 98e6bd2122db3ac6b61697be6bb12c9e80a442e8 (patch) | |
tree | 3e69e5aa8f0264d3073c966b69c58fd69db6ee9f /qa/qa/resource | |
parent | 81ddb69255f36bccd79c714a2c12d542cf782f8d (diff) | |
download | gitlab-ce-98e6bd2122db3ac6b61697be6bb12c9e80a442e8.tar.gz |
[QA] Fix the 'Commit data' QA test
We now visit the project/wiki page after a push since that's the logical
page where we should be after a push.
Also, we now properly set the `@project` variable because the
`web_url` of a Push resource isn't necessarily it's project/wiki page
(if the project/wiki are created via the API for instance, `current_url`
would be the current page, not the project/wiki page).
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'qa/qa/resource')
-rw-r--r-- | qa/qa/resource/repository/project_push.rb | 5 | ||||
-rw-r--r-- | qa/qa/resource/repository/wiki_push.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/resource/repository/project_push.rb b/qa/qa/resource/repository/project_push.rb index 37feab4ad70..f4692c3dd4d 100644 --- a/qa/qa/resource/repository/project_push.rb +++ b/qa/qa/resource/repository/project_push.rb @@ -26,6 +26,11 @@ module QA def repository_ssh_uri @repository_ssh_uri ||= project.repository_ssh_location.uri end + + def fabricate! + super + project.visit! + end end end end diff --git a/qa/qa/resource/repository/wiki_push.rb b/qa/qa/resource/repository/wiki_push.rb index f1c39d507fe..77c4c8a514d 100644 --- a/qa/qa/resource/repository/wiki_push.rb +++ b/qa/qa/resource/repository/wiki_push.rb @@ -30,6 +30,11 @@ module QA end end end + + def fabricate! + super + wiki.visit! + end end end end |