summaryrefslogtreecommitdiff
path: root/features/project/pages.feature
blob: 56e47287b5c332e4837e3cd1d62d172aa9dc71ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Feature: Project Pages
  Background:
    Given I sign in as a user
    And I own a project

  Scenario: I cannot navigate to Pages settings if pages enabled
    Given 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
    When I visit the Project Pages
    Then I should see the usage of GitLab Pages

  Scenario: I can access the pages if deployed
    Given pages are enabled
    And pages are deployed
    When I visit the Project Pages
    Then I should be able to access the Pages

  Scenario: I should message that domains support is disabled
    Given pages are enabled
    And pages are deployed
    And support for external domains is disabled
    When I visit the Project Pages
    Then I should see that support for domains is disabled

  Scenario: I should see a new domain button
    Given pages are enabled
    And pages are exposed on external HTTP address
    When I visit the Project Pages
    And I should be able to add a New Domain

  Scenario: I should be able to add a new domain
    Given pages are enabled
    And pages are exposed on external HTTP address
    When I visit add a new Pages Domain
    And I fill the domain
    And I click on "Create New Domain"
    Then I should see a new domain added

  Scenario: I should be able to add a new domain for project in group namespace
    Given I own a project in some group namespace
    And pages are enabled
    And pages are exposed on external HTTP address
    When I visit add a new Pages Domain
    And I fill the domain
    And I click on "Create New Domain"
    Then I should see a new domain added

  Scenario: I should be denied to add the same domain twice
    Given pages are enabled
    And pages are exposed on external HTTP address
    And pages domain is added
    When I visit add a new Pages Domain
    And I fill the domain
    And I click on "Create New Domain"
    Then I should see error message that domain already exists

  Scenario: I should message that certificates support is disabled when trying to add a new domain
    Given pages are enabled
    And pages are exposed on external HTTP address
    And pages domain is added
    When I visit add a new Pages Domain
    Then I should see that support for certificates is disabled

  Scenario: I should be able to add a new domain with certificate
    Given pages are enabled
    And pages are exposed on external HTTPS address
    When I visit add a new Pages Domain
    And I fill the domain
    And I fill the certificate and key
    And I click on "Create New Domain"
    Then I should see a new domain added

  Scenario: I can remove the pages if deployed
    Given pages are enabled
    And pages are deployed
    When I visit the Project Pages
    And I click Remove Pages
    Then The Pages should get removed