@webship-js/gitea-steps 0.0.0-stage → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Webship.co
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,249 @@
1
- # Temporary Holding Version
1
+ <p align="center"><img src="https://raw.githubusercontent.com/webship/gitea-steps/2.0.x/assets/gitea.svg" alt="Gitea logo" width="96">&nbsp;&nbsp;&nbsp;<img src="https://raw.githubusercontent.com/webship/gitea-steps/2.0.x/assets/forgejo.svg" alt="Forgejo logo" width="96"></p>
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # gitea-steps
4
+
5
+ [![Test](https://github.com/webship/gitea-steps/actions/workflows/test.yml/badge.svg)](https://github.com/webship/gitea-steps/actions/workflows/test.yml)
6
+
7
+ Cucumber step definitions for testing **Gitea and Forgejo**, the open-source self-hosted Git forges, with
8
+ [webship-js](https://webship.co/docs/webship-js/2.0.x), a BDD browser automation harness built on Playwright and
9
+ Cucumber-js. One pack serves both: Forgejo is a fork of Gitea that keeps its API and its addresses, and where the two
10
+ draw a control differently (Forgejo 17 is built on Gitea 1.22, Gitea 1.27 has a newer issue sidebar) the steps look
11
+ for either. CI runs every step on both. The pack covers a repository's issues:
12
+
13
+ - **logging in and out**: an account of the users registry by its handle, the login form, a refused login, who the
14
+ session is, logging out;
15
+ - **a repository**: opened by owner/name, and refused to an account with no access to it;
16
+ - **the issue list** of a repository, and **one issue**: a comment, closing and reopening it, the time spent on it,
17
+ its assignee, and the milestone it is in;
18
+ - **a new issue** made through the form;
19
+ - **the milestones**: the open milestones of a repository, and the issues one holds;
20
+ - **what an account may not do**: a reader's close button, assignee and time tracker.
21
+
22
+ The steps make and remove their test content through the forge's own REST API, as a managing account (the
23
+ repository's owner): an issue a scenario makes goes after it, with its comments and the time spent on it, so a run
24
+ leaves the site as it found it.
25
+
26
+ No step phrase names the platform: a scenario reads `When I add the comment "…" to the issue` and
27
+ `Then the milestone should list the issue "…"`.
28
+
29
+ CI builds a real site with [DDEV](https://ddev.com) on the runner, Gitea and Forgejo in turn (the product's own image
30
+ on the project's own PostgreSQL, the accounts of the suite, the sample content), on Node.js 24 and 26. It runs the
31
+ whole suite against it twice on every push and pull request, checks after each run that the site holds what it held
32
+ before, then runs the assertions that must fail; see [The test site](#the-test-site) and
33
+ [`.github/workflows/test.yml`](.github/workflows/test.yml).
34
+
35
+ ## Logging in first
36
+
37
+ Every scenario starts by logging in, so these are the steps to know first:
38
+
39
+ | Step | What it does |
40
+ | --- | --- |
41
+ | `Given I am a logged in user with the "member" user` | Logs in as an account of the users registry, by its handle. The first time in a run through the login form, then its session is put back |
42
+ | `When I log in with the "member" user` | Fills and submits the login form with the account's login and password, and asserts nothing: for scenarios about the login itself |
43
+ | `When I log in as "member" with the password "wrong"` | The same with a login and a password as typed |
44
+ | `Given I am not logged in` | The browser forgets its session |
45
+ | `When I log out` | Logs out through the account menu (Gitea's "Sign Out", Forgejo's "Sign out"), and waits until the session is a visitor's |
46
+ | `Then I should be logged in as "member"` | The session is the account's: its login, or its full name as the forge shows it (`"Member Test"`) |
47
+ | `Then I should not be logged in` | The session is a visitor's |
48
+ | `Then the login should be refused with "Username or password is incorrect."` | The login form refused the last login with that message |
49
+
50
+ ```gherkin
51
+ Scenario: An account logs in through the form and out again
52
+ Given I am not logged in
53
+ When I log in with the "member" user
54
+ Then I should be logged in as "Member Test"
55
+ When I log out
56
+ Then I should not be logged in
57
+ ```
58
+
59
+ ## From nothing to a green run
60
+
61
+ What the machine needs: Docker, [DDEV](https://ddev.com), git, python3, and Node.js 24 or later with npm. The forge and
62
+ its database run in DDEV's containers.
63
+
64
+ **1. The site.** The pack's own build script (the one CI runs) makes the site in a DDEV project: Gitea 1.27.3
65
+ (`gitea/gitea`), or Forgejo 17.0.2 with `PRODUCT=forgejo` (`codeberg.org/forgejo/forgejo`; `RELEASE` for another
66
+ release), on PostgreSQL 17, the four accounts of [Test users](#test-users), and the sample content (see
67
+ [The test site](#the-test-site)). It takes about a minute once the image is pulled (about 200 MB).
68
+
69
+ ```bash
70
+ git clone https://github.com/webship/gitea-steps.git
71
+ SITE_DIR="$PWD/gitea-site" gitea-steps/.github/scripts/build-ddev-site.sh
72
+ SITE_DIR="$PWD/forgejo-site" PRODUCT=forgejo gitea-steps/.github/scripts/build-ddev-site.sh # or Forgejo
73
+ ```
74
+
75
+ The site answers at `https://giteasteps.ddev.site` (one at a time: both builds use that name). In the
76
+ [Webship Workspace](https://github.com/webship/workspace), its Gitea plugin builds the same site in a sites folder,
77
+ Gitea or Forgejo, on DDEV or on Docker Compose, and wires this pack into the testing setup of the site:
78
+
79
+ ```bash
80
+ bash core/scripts/plugins.sh --require gitea --with-needs
81
+ bash core/scripts/plugins.sh --activate gitea --with-needs
82
+ bash core/scripts/plugins.sh --install gitea
83
+ bash dev/cmd-gitea-project.sh gtsite --install --add-users --sample-content # Gitea
84
+ bash dev/cmd-gitea-project.sh fjsite --product forgejo --install --add-users --sample-content # Forgejo
85
+ bash dev/cmd-tools-testing.sh gtsite --run
86
+ ```
87
+
88
+ **2. A test project.**
89
+
90
+ ```bash
91
+ mkdir forge-tests && cd forge-tests
92
+ npm init -y
93
+ npm install --save-dev webship-js @webship-js/gitea-steps
94
+ npx init-webship-js
95
+ ```
96
+
97
+ **3. `cucumber.js`.** Add the pack's step definitions after webship-js's own, and give the world its parameters:
98
+
99
+ ```javascript
100
+ require: [
101
+ 'node_modules/webship-js/tests/step-definitions/**/*.js',
102
+ 'node_modules/@webship-js/gitea-steps/tests/step-definitions/**/*.js',
103
+ ],
104
+ tags: process.env.CUCUMBER_TAGS || 'not @wip and not @must-fail',
105
+ worldParameters: {
106
+ launchUrl: process.env.LAUNCH_URL || 'https://giteasteps.ddev.site',
107
+ // The account that makes and removes test content through the forge's REST API: the repositories' owner.
108
+ manager: process.env.MANAGER || 'owner',
109
+ // The repository a step works in when it names none (owner/name).
110
+ repository: process.env.REPOSITORY || 'owner/webship-site',
111
+ users: {
112
+ owner: { username: process.env.GITEA_OWNER_USER || 'owner', password: process.env.GITEA_OWNER_PASSWORD, name: 'Owner Test' },
113
+ member: { username: process.env.GITEA_MEMBER_USER || 'member', password: process.env.GITEA_MEMBER_PASSWORD, name: 'Member Test' },
114
+ reader: { username: process.env.GITEA_READER_USER || 'reader', password: process.env.GITEA_READER_PASSWORD, name: 'Reader Test' },
115
+ stranger: { username: process.env.GITEA_STRANGER_USER || 'stranger', password: process.env.GITEA_STRANGER_PASSWORD, name: 'Stranger Test' },
116
+ },
117
+ // … webship-js's own parameters (minWaitTime, screenshot, javascript …)
118
+ },
119
+ ```
120
+
121
+ This repository's own [`cucumber.js`](cucumber.js) is a whole example.
122
+
123
+ **4. Run.**
124
+
125
+ ```bash
126
+ npx cucumber-js # every feature
127
+ npx cucumber-js tests/features/issues.feature # one feature
128
+ CUCUMBER_TAGS=@milestones npx cucumber-js # one tag
129
+ ```
130
+
131
+ ## Steps
132
+
133
+ ### Repositories
134
+
135
+ | Step | What it does |
136
+ | --- | --- |
137
+ | `When I open the repository "owner/webship-site"` | Opens the repository's front page |
138
+ | `Then I should be refused the repository "owner/webship-site"` | The session may not open the repository: the forge answers 404, "…not authorized to view it" (`@js-off`) |
139
+
140
+ ### Test content
141
+
142
+ | Step | What it does |
143
+ | --- | --- |
144
+ | `Given there is an issue "Webship test …" in the repository "owner/webship-site"` | Makes it through the REST API as the managing account (one of the title left by a stopped run goes first). It goes after the scenario |
145
+ | `Given there is an issue "Webship test …" in the milestone "Sprint 1"` | The same, in that milestone of the repository from the start (`… of the repository "…"` names the repository) |
146
+ | `Given there is no issue "Webship test …" in the repository "owner/webship-site"` | Removes any of the title, with its comments and its time |
147
+
148
+ The repository part is optional: the last repository the scenario used, else `worldParameters.repository`.
149
+
150
+ ### The issue list
151
+
152
+ | Step | What it does |
153
+ | --- | --- |
154
+ | `When I open the issues of the repository "owner/webship-site"` | The repository's list of open issues |
155
+ | `Then the issue list should show "…"` / `should not show "…"` | An issue of the title is (not) in the list on screen |
156
+ | `When I create an issue "Webship test …" in the repository "owner/webship-site"` | Through the form of a new issue, created. It goes after the scenario |
157
+
158
+ ### One issue
159
+
160
+ | Step | What it does |
161
+ | --- | --- |
162
+ | `When I open the issue "…"` | Opens it by its title |
163
+ | `When I add the comment "…" to the issue` | Through its comment box, and waits until its timeline shows it |
164
+ | `Then the issue should show the comment "…"` (`… by "member"`) | The timeline shows the comment, written by that account when one is named (its login, or a handle's full name) |
165
+ | `When I close the issue` / `When I reopen the issue` | With its button, and waits until its state says so |
166
+ | `Then the issue should be "open"` / `"closed"` | The state it shows |
167
+ | `When I log "0.5" hours on the issue` | Through its time tracker ("Add Time": hours and minutes) |
168
+ | `Then the time spent on the issue should be "30 minutes"` | The total its sidebar shows ("Total Time Spent") |
169
+ | `When I assign the issue to "member"` | Through its sidebar: an account with write access, by login |
170
+ | `Then the issue should be assigned to "member"` | An assignee its sidebar shows: a login, or a full name (`"Member Test"`) |
171
+ | `Then the milestone of the issue should be "Sprint 1"` | The milestone its sidebar shows |
172
+
173
+ ### What an account may not do
174
+
175
+ | Step | What it does |
176
+ | --- | --- |
177
+ | `Then I should not be able to close the issue` | It has no close button for the session (a reader, on someone else's issue) |
178
+ | `Then I should not be able to assign the issue` | Its Assignees control is disabled for the session |
179
+ | `Then I should not be able to log time on the issue` | It has no time tracker for the session |
180
+
181
+ ### Milestones
182
+
183
+ | Step | What it does |
184
+ | --- | --- |
185
+ | `When I open the milestones of the repository "owner/webship-site"` | The repository's open milestones |
186
+ | `Then the milestones should list "Sprint 1"` / `should not list "…"` | A milestone of the name is (not) on the page |
187
+ | `When I open the milestone "Sprint 1" of the repository "owner/webship-site"` | The milestone's own page, with its open issues |
188
+ | `Then the milestone should list the issue "…"` / `should not list the issue "…"` | What it holds |
189
+
190
+ Every step carries five example phrasings in its JSDoc, and `npm run test:examples` checks that each one matches its
191
+ own step only.
192
+
193
+ ## Rules of a suite
194
+
195
+ - Log in by a handle of the users registry; never write a password into a feature.
196
+ - Never create or delete an account in a suite: accounts are configuration, made by the build of the site.
197
+ - Change only what the scenario made: a comment, the time, the state and an assignee go on an issue of
198
+ `Given there is an issue "…"`, which goes after the scenario with all of it. A comment stays in the timeline.
199
+ - Put an issue into a milestone through `Given there is an issue "…" in the milestone "…"`: Forgejo's own page script
200
+ logs errors after a milestone is changed on the page.
201
+ - Name test content "Webship test …". A run that was stopped half way leaves its issues; the Workspace's
202
+ `cmd-tools-gitea-cli.sh <site> --tidy` removes them, or delete them as the managing account.
203
+ - A refusal the forge answers with an error status (a repository an account may not see) makes the browser log a
204
+ failed request: give those scenarios `@js-off`. A refused login answers 200 and needs none.
205
+
206
+ ## Test users
207
+
208
+ The accounts the features log in as, each with the password `dD.123123ddd`:
209
+
210
+ | Handle | Login | Name | To the private repository owner/webship-site |
211
+ | --- | --- | --- | --- |
212
+ | `owner` | `owner` | Owner Test | Its owner (the managing account) |
213
+ | `member` | `member` | Member Test | A collaborator with write access |
214
+ | `reader` | `reader` | Reader Test | A collaborator with read access |
215
+ | `stranger` | `stranger` | Stranger Test | No access |
216
+
217
+ ## The test site
218
+
219
+ `.github/scripts/build-ddev-site.sh` builds it, and `COUNTS_ONLY=1` makes it print what the site holds (issues, open
220
+ issues, assigned issues, comments, tracked times, milestones, labels, collaborators, users): CI compares them before
221
+ and after each run. The sample content, in the private repository owner/webship-site:
222
+
223
+ - `greeting.sh`, a script that greets, with two typos;
224
+ - "The greeting script says Helo instead of Hello": opened by the owner, assigned to member, in the milestone
225
+ "Sprint 1" (due in eleven days), labelled bug, with a comment;
226
+ - "The usage line spells greeting as greting": opened by the member;
227
+ - "An issue opened by someone outside the project": opened by the reader, who may only read.
228
+
229
+ The features read them and never change them.
230
+
231
+ ## The assertions that must fail
232
+
233
+ `tests/must-fail/` holds scenarios that assert something that is not true on the test site; `npm run test:must-fail`
234
+ runs them and checks that each fails at its last step with the message its description announces, and a hint. A step
235
+ that cannot fail proves nothing.
236
+
237
+ ## Logos
238
+
239
+ The logos name the platforms the pack tests, as [Simple Icons](https://simpleicons.org) 16.37.0 ships them, in the
240
+ colours the set lists:
241
+
242
+ - `assets/gitea.svg`: Gitea's logo, from Gitea's own repository (`assets/logo.svg` of
243
+ https://github.com/go-gitea/gitea), which is MIT-licensed; Simple Icons lists no other licence for it.
244
+ - `assets/forgejo.svg`: Forgejo's logo, created by Caesar Schinas and licensed under CC BY-SA 4.0
245
+ (https://codeberg.org/forgejo/meta/src/branch/readme/branding).
246
+
247
+ ## License
248
+
249
+ MIT (see `LICENSE`).
package/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
2
  "name": "@webship-js/gitea-steps",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.0.1",
4
+ "description": "Cucumber step definitions for Gitea and Forgejo, the open-source self-hosted Git forges (one pack for both: Forgejo is a fork of Gitea), a pack for webship-js (Playwright and Cucumber): logging in and out and its refusal, a repository and who may see it, the issue list, one issue (its comments, closing and reopening it, the time spent on it, its assignee and milestone), a new issue, and the milestones with their issues. Test content is made and removed through the forge's own REST API, so a run leaves the site as it found it.",
5
+ "main": "tests/step-definitions/gitea-helpers.js",
6
+ "files": [
7
+ "tests/step-definitions/",
8
+ "tests/features/",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "scripts": {
13
+ "test": "cucumber-js --config cucumber.js",
14
+ "test:dry": "cucumber-js --config cucumber.js --dry-run",
15
+ "test:examples": "node tests/check-examples.js",
16
+ "test:paths": "node tests/check-paths.js",
17
+ "test:must-fail": "node tests/check-must-fail.js",
18
+ "test:chromium": "BROWSER=chromium cucumber-js --config cucumber.js",
19
+ "test:firefox": "BROWSER=firefox cucumber-js --config cucumber.js",
20
+ "test:webkit": "BROWSER=webkit cucumber-js --config cucumber.js",
21
+ "test:headed": "HEADLESS=false cucumber-js --config cucumber.js",
22
+ "generate-reports": "generate-reports",
23
+ "test:fast": "SLOW_MO=0 cucumber-js --config cucumber.js"
24
+ },
25
+ "keywords": [
26
+ "webship-js",
27
+ "gitea",
28
+ "forgejo",
29
+ "git-forge",
30
+ "issues",
31
+ "milestones",
32
+ "time-tracking",
33
+ "cucumber",
34
+ "cucumber-js",
35
+ "playwright",
36
+ "bdd",
37
+ "gherkin",
38
+ "step-definitions",
39
+ "e2e-testing"
40
+ ],
41
+ "author": "Webship.co",
42
+ "license": "MIT",
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/webship/gitea-steps.git"
46
+ },
47
+ "bugs": {
48
+ "url": "https://github.com/webship/gitea-steps/issues"
49
+ },
50
+ "homepage": "https://github.com/webship/gitea-steps#readme",
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "engines": {
55
+ "node": ">= 24.0"
56
+ },
57
+ "peerDependencies": {
58
+ "webship-js": "^2.0.16"
59
+ },
60
+ "devDependencies": {
61
+ "tsx": "^4.23.0",
62
+ "webship-js": "^2.0.17"
63
+ },
64
+ "overrides": {
65
+ "@cucumber/cucumber": "^12"
66
+ }
67
+ }
@@ -0,0 +1,45 @@
1
+ @issues
2
+ Feature: The issues of the repository
3
+ A member reads the repository's issues and works an issue of its own: a comment, the time spent on it, its assignee,
4
+ closing and reopening it. What a scenario makes goes after it, with its comments and its time.
5
+
6
+ Background:
7
+ Given I am a logged in user with the "member" user
8
+
9
+ Scenario: The list of open issues and one issue of the sample content
10
+ When I open the issues of the repository "owner/webship-site"
11
+ Then the issue list should show "The greeting script says Helo instead of Hello"
12
+ And the issue list should show "An issue opened by someone outside the project"
13
+ When I open the issue "The greeting script says Helo instead of Hello"
14
+ Then the issue should be "open"
15
+ And the issue should show the comment "The script is in the repository" by "owner"
16
+ And the issue should be assigned to "member"
17
+ And the milestone of the issue should be "Sprint 1"
18
+
19
+ Scenario: A comment, the time spent and the assignee of an issue
20
+ Given there is an issue "Webship test work" in the repository "owner/webship-site"
21
+ When I open the issue "Webship test work"
22
+ And I add the comment "Checked on the test site" to the issue
23
+ And I log "0.5" hours on the issue
24
+ And I assign the issue to "member"
25
+ Then the issue should show the comment "Checked on the test site" by "Member Test"
26
+ And the time spent on the issue should be "30 minutes"
27
+ And the issue should be assigned to "Member Test"
28
+
29
+ Scenario: An issue closed leaves the list, and reopened comes back
30
+ Given there is an issue "Webship test close" in the repository "owner/webship-site"
31
+ When I open the issue "Webship test close"
32
+ And I close the issue
33
+ Then the issue should be "closed"
34
+ When I open the issues of the repository "owner/webship-site"
35
+ Then the issue list should not show "Webship test close"
36
+ When I open the issue "Webship test close"
37
+ And I reopen the issue
38
+ Then the issue should be "open"
39
+
40
+ Scenario: A new issue through the form
41
+ Given there is no issue "Webship test form" in the repository "owner/webship-site"
42
+ When I create an issue "Webship test form" in the repository "owner/webship-site"
43
+ Then the issue should be "open"
44
+ When I open the issues of the repository "owner/webship-site"
45
+ Then the issue list should show "Webship test form"
@@ -0,0 +1,20 @@
1
+ @milestones
2
+ Feature: The milestones of the repository
3
+ The repository's milestones, and the open issues each holds. An issue goes into a milestone through the API.
4
+
5
+ Background:
6
+ Given I am a logged in user with the "member" user
7
+
8
+ Scenario: The milestone of the sample content and its issue
9
+ When I open the milestones of the repository "owner/webship-site"
10
+ Then the milestones should list "Sprint 1"
11
+ When I open the milestone "Sprint 1" of the repository "owner/webship-site"
12
+ Then the milestone should list the issue "The greeting script says Helo instead of Hello"
13
+ And the milestone should not list the issue "The usage line spells greeting as greting"
14
+
15
+ Scenario: An issue made in a milestone shows in it
16
+ Given there is an issue "Webship test sprint" in the milestone "Sprint 1" of the repository "owner/webship-site"
17
+ When I open the milestone "Sprint 1" of the repository "owner/webship-site"
18
+ Then the milestone should list the issue "Webship test sprint"
19
+ When I open the issue "Webship test sprint"
20
+ Then the milestone of the issue should be "Sprint 1"
@@ -0,0 +1,19 @@
1
+ @roles
2
+ Feature: What each account may do in the repository
3
+ A reader reads the repository's issues and comments on them, but neither closes nor assigns someone else's issue
4
+ nor logs time on it, and an account with no access is refused the private repository.
5
+
6
+ Scenario: A reader comments, but neither closes, assigns nor logs time
7
+ Given there is an issue "Webship test reader" in the repository "owner/webship-site"
8
+ And I am a logged in user with the "reader" user
9
+ When I open the issue "Webship test reader"
10
+ Then I should not be able to close the issue
11
+ And I should not be able to assign the issue
12
+ And I should not be able to log time on the issue
13
+ When I add the comment "Read on the test site" to the issue
14
+ Then the issue should show the comment "Read on the test site" by "reader"
15
+
16
+ @js-off
17
+ Scenario: An account with no access is refused the private repository
18
+ Given I am a logged in user with the "stranger" user
19
+ Then I should be refused the repository "owner/webship-site"
@@ -0,0 +1,24 @@
1
+ @session
2
+ Feature: Logging in and out
3
+ The accounts of the users registry log in through the login form, a wrong password is refused, and logging out
4
+ ends the session.
5
+
6
+ Scenario: An account logs in through the form and out again
7
+ Given I am not logged in
8
+ When I log in with the "member" user
9
+ Then I should be logged in as "Member Test"
10
+ And I should be logged in as "member"
11
+ When I log out
12
+ Then I should not be logged in
13
+
14
+ Scenario: A wrong password is refused
15
+ Given I am not logged in
16
+ When I log in as "member" with the password "not-the-right-password"
17
+ Then the login should be refused with "Username or password is incorrect."
18
+ And I should not be logged in
19
+
20
+ Scenario: A session of the registry is put back for the next scenario
21
+ Given I am a logged in user with the "owner" user
22
+ Then I should be logged in as "owner"
23
+ Given I am a logged in user with the "member" user
24
+ Then I should be logged in as "Member Test"