diff options
author | Rémy Coutable <remy@rymai.me> | 2017-05-04 12:27:52 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-05-04 12:27:52 +0300 |
commit | ef71bf6278759aafb1a480916cfafb9c9650eddc (patch) | |
tree | 6c35c1798130abc3d653af689e847d9ad83a785a /features/project | |
parent | 68c12e15cc236548918f91393ebef3c06c124814 (diff) | |
parent | 3ce95e7c16712cbede82f70c3a67916088f42b7e (diff) |
Merge branch '30529-remove-pages-tab-if-pages-isn-t-enabled' into 'master'
Disable navigation to Pages config if Pages is disabled
Closes #30529
See merge request !11008
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/active_tab.feature | 7 | ||||
-rw-r--r-- | features/project/pages.feature | 11 |
2 files changed, 8 insertions, 10 deletions
diff --git a/features/project/active_tab.feature b/features/project/active_tab.feature index 0d6f7350181..34201cd8486 100644 --- a/features/project/active_tab.feature +++ b/features/project/active_tab.feature @@ -63,13 +63,6 @@ Feature: Project Active Tab And no other sub tabs should be active And the active main tab should be Settings - Scenario: On Project Settings/Pages - Given I visit my project's settings page - And I click the "Pages" tab - Then the active sub tab should be Pages - And no other sub tabs should be active - And the active main tab should be Settings - Scenario: On Project Members Given I visit my project's members page Then the active sub tab should be Members diff --git a/features/project/pages.feature b/features/project/pages.feature index 87d88348d09..56e47287b5c 100644 --- a/features/project/pages.feature +++ b/features/project/pages.feature @@ -3,10 +3,15 @@ Feature: Project Pages Given I sign in as a user And I own a project - Scenario: Pages are disabled + Scenario: I cannot navigate to Pages settings if pages enabled Given pages are disabled - When I visit the Project Pages - Then I should see that GitLab Pages are disabled + And I visit my project's settings page + Then I should not see the "Pages" tab + + Scenario: I can navigate to Pages settings if pages enabled + Given pages are enabled + And I visit my project's settings page + Then I should see the "Pages" tab Scenario: I can see the pages usage if not deployed Given pages are enabled |