Welcome to mirror list, hosted at ThFree Co, Russian Federation.

invites.feature « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc8eefaeaed5a5db1c2f35d4cfd4bd0539198005 (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
Feature: Invites
  Background:
    Given "John Doe" is owner of group "Owned"
    And "John Doe" has invited "user@example.com" to group "Owned"

  Scenario: Viewing invitation when signed out
    When I visit the invitation page
    Then I should be redirected to the sign in page
    And I should see a notice telling me to sign in

  Scenario: Signing in to view invitation
    When I visit the invitation page
    And I sign in as "Mary Jane"
    Then I should be redirected to the invitation page

  Scenario: Viewing invitation when signed in
    Given I sign in as "Mary Jane"
    And I visit the invitation page
    Then I should see the invitation details
    And I should see an "Accept invitation" button
    And I should see a "Decline" button

  Scenario: Viewing invitation as an existing member
    Given I sign in as "John Doe"
    And I visit the invitation page
    Then I should see a message telling me I'm already a member

  Scenario: Accepting the invitation
    Given I sign in as "Mary Jane"
    And I visit the invitation page
    And I click the "Accept invitation" button
    Then I should be redirected to the group page
    And I should see a notice telling me I have access

  Scenario: Declining the application when signed in
    Given I sign in as "Mary Jane"
    And I visit the invitation page
    And I click the "Decline" button
    Then I should be redirected to the dashboard
    And I should see a notice telling me I have declined

  Scenario: Declining the application when signed out
    When I visit the invitation's decline page
    Then I should be redirected to the sign in page
    And I should see a notice telling me I have declined