@webship-js/redmine-steps 0.0.0-stage → 2.0.0
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 +21 -0
- package/README.md +234 -2
- package/package.json +64 -4
- package/tests/features/issues.feature +36 -0
- package/tests/features/roles.feature +16 -0
- package/tests/features/session.feature +24 -0
- package/tests/features/versions.feature +12 -0
- package/tests/step-definitions/redmine-helpers.js +470 -0
- package/tests/step-definitions/redmine-issues.steps.js +398 -0
- package/tests/step-definitions/redmine-session.steps.js +225 -0
- package/tests/step-definitions/redmine-versions.steps.js +99 -0
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,235 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/webship/redmine-steps/2.0.x/assets/logo.svg" alt="Redmine logo" width="96"></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# redmine-steps
|
|
4
|
+
|
|
5
|
+
[](https://github.com/webship/redmine-steps/actions/workflows/test.yml)
|
|
6
|
+
|
|
7
|
+
Cucumber step definitions for testing Redmine, the open-source project management and issue tracking software, 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. The pack covers what a project's work goes through:
|
|
10
|
+
|
|
11
|
+
- **logging in and out**: an account of the users registry by its handle, the login form, a refused login, who the
|
|
12
|
+
session is, logging out;
|
|
13
|
+
- **a project**: opened by its identifier or its name, and refused to an account with no membership;
|
|
14
|
+
- **the issue list** of a project, and **one issue**: its status through the workflow, a note, the time spent on it,
|
|
15
|
+
its assignee, each through its update form;
|
|
16
|
+
- **a new issue** made through the form;
|
|
17
|
+
- **the versions**: what a version holds and its state, and the roadmap;
|
|
18
|
+
- **what an account may not do**: a Reporter's status and assignee.
|
|
19
|
+
|
|
20
|
+
The steps make and remove their test content through the site's own REST API, as a managing account (a Manager): an
|
|
21
|
+
issue a scenario makes goes after it, with its notes and the time spent on it, so a run leaves the site as it found it.
|
|
22
|
+
|
|
23
|
+
No step phrase names the platform: a scenario reads `When I set the status of the issue to "In Progress"` and
|
|
24
|
+
`Then the version should list the issue "…"`.
|
|
25
|
+
|
|
26
|
+
CI builds a real Redmine site with [DDEV](https://ddev.com) on the runner (the official image on the project's own
|
|
27
|
+
PostgreSQL, its default data and REST API, the accounts of the suite, the sample content), runs the whole suite
|
|
28
|
+
against it twice on every push and pull request, checks after each run that the site holds what it held before, then
|
|
29
|
+
runs the assertions that must fail; see [The test site](#the-test-site) and
|
|
30
|
+
[`.github/workflows/test.yml`](.github/workflows/test.yml).
|
|
31
|
+
|
|
32
|
+
## Logging in first
|
|
33
|
+
|
|
34
|
+
Every scenario starts by logging in, so these are the steps to know first:
|
|
35
|
+
|
|
36
|
+
| Step | What it does |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `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 |
|
|
39
|
+
| `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 |
|
|
40
|
+
| `When I log in as "member" with the password "wrong"` | The same with a login and a password as typed |
|
|
41
|
+
| `Given I am not logged in` | The browser forgets its session |
|
|
42
|
+
| `When I log out` | Logs out through the site (its sign-out page and button), and waits until the session is a visitor's |
|
|
43
|
+
| `Then I should be logged in as "Member Test"` | The session is the account's: its name as the site shows it, or its login (`"member"`) |
|
|
44
|
+
| `Then I should not be logged in` | The session is a visitor's |
|
|
45
|
+
| `Then the login should be refused with "Invalid user or password"` | The login form refused the last login with that message (give the scenario `@js-off`: the browser logs the refused request) |
|
|
46
|
+
|
|
47
|
+
```gherkin
|
|
48
|
+
Scenario: An account logs in through the form and out again
|
|
49
|
+
Given I am not logged in
|
|
50
|
+
When I log in with the "member" user
|
|
51
|
+
Then I should be logged in as "Member Test"
|
|
52
|
+
When I log out
|
|
53
|
+
Then I should not be logged in
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## From nothing to a green run
|
|
57
|
+
|
|
58
|
+
What the machine needs: Docker, [DDEV](https://ddev.com), git, python3, and Node.js 24 or later with npm. Redmine and
|
|
59
|
+
its database run in DDEV's containers.
|
|
60
|
+
|
|
61
|
+
**1. The site.** The pack's own build script (the one CI runs) makes the site in a DDEV project: the official image
|
|
62
|
+
(`redmine:7.0.3`, `REDMINE_VERSION` for another release) on PostgreSQL 17, its default data in English and its REST API
|
|
63
|
+
on, the four accounts of [Test users](#test-users), and the sample content (see [The test site](#the-test-site)). It
|
|
64
|
+
takes under a minute once the image is pulled (about 700 MB).
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
git clone https://github.com/webship/redmine-steps.git
|
|
68
|
+
SITE_DIR="$PWD/redmine-site" redmine-steps/.github/scripts/build-ddev-site.sh
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The site answers at `https://redminesteps.ddev.site`. In the [Webship Workspace](https://github.com/webship/workspace),
|
|
72
|
+
its Redmine plugin builds the same site in a sites folder, on DDEV or on Docker Compose, and wires this pack into the
|
|
73
|
+
testing setup of the site:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bash core/scripts/plugins.sh --require redmine --with-needs
|
|
77
|
+
bash core/scripts/plugins.sh --activate redmine --with-needs
|
|
78
|
+
bash core/scripts/plugins.sh --install redmine
|
|
79
|
+
bash dev/cmd-redmine-project.sh rmsite --install --add-users --sample-content
|
|
80
|
+
bash dev/cmd-tools-testing.sh rmsite --run
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**2. A test project.**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
mkdir redmine-tests && cd redmine-tests
|
|
87
|
+
npm init -y
|
|
88
|
+
npm install --save-dev webship-js @webship-js/redmine-steps
|
|
89
|
+
npx init-webship-js
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**3. `cucumber.js`.** Add the pack's step definitions after webship-js's own, and give the world its parameters:
|
|
93
|
+
|
|
94
|
+
```javascript
|
|
95
|
+
require: [
|
|
96
|
+
'node_modules/webship-js/tests/step-definitions/**/*.js',
|
|
97
|
+
'node_modules/@webship-js/redmine-steps/tests/step-definitions/**/*.js',
|
|
98
|
+
],
|
|
99
|
+
tags: process.env.CUCUMBER_TAGS || 'not @wip and not @must-fail',
|
|
100
|
+
worldParameters: {
|
|
101
|
+
launchUrl: process.env.LAUNCH_URL || 'https://redminesteps.ddev.site',
|
|
102
|
+
// The account that makes and removes test content through the site's REST API: a Manager of the projects used.
|
|
103
|
+
manager: process.env.MANAGER || 'owner',
|
|
104
|
+
// The project a step works in when it names none (its identifier).
|
|
105
|
+
project: process.env.PROJECT || 'webship-site',
|
|
106
|
+
users: {
|
|
107
|
+
owner: { username: process.env.REDMINE_OWNER_USER || 'owner', password: process.env.REDMINE_OWNER_PASSWORD, name: 'Owner Test' },
|
|
108
|
+
member: { username: process.env.REDMINE_MEMBER_USER || 'member', password: process.env.REDMINE_MEMBER_PASSWORD, name: 'Member Test' },
|
|
109
|
+
reader: { username: process.env.REDMINE_READER_USER || 'reader', password: process.env.REDMINE_READER_PASSWORD, name: 'Reader Test' },
|
|
110
|
+
stranger: { username: process.env.REDMINE_STRANGER_USER || 'stranger', password: process.env.REDMINE_STRANGER_PASSWORD, name: 'Stranger Test' },
|
|
111
|
+
},
|
|
112
|
+
// … webship-js's own parameters (minWaitTime, screenshot, javascript …)
|
|
113
|
+
},
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This repository's own [`cucumber.js`](cucumber.js) is a whole example.
|
|
117
|
+
|
|
118
|
+
**4. Run.**
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx cucumber-js # every feature
|
|
122
|
+
npx cucumber-js tests/features/issues.feature # one feature
|
|
123
|
+
CUCUMBER_TAGS=@versions npx cucumber-js # one tag
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Steps
|
|
127
|
+
|
|
128
|
+
### Projects
|
|
129
|
+
|
|
130
|
+
| Step | What it does |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| `When I open the project "webship-site"` | Opens the project's overview, by its identifier or its name ("Webship site") |
|
|
133
|
+
| `Then I should be refused the project "webship-site"` | The session may not open the project: the site answers 403 (`@js-off`) |
|
|
134
|
+
|
|
135
|
+
### Test content
|
|
136
|
+
|
|
137
|
+
| Step | What it does |
|
|
138
|
+
| --- | --- |
|
|
139
|
+
| `Given there is an issue "Webship test …" in the project "webship-site"` | Makes it through the REST API as the managing account (one of the subject left by a stopped run goes first). It goes after the scenario |
|
|
140
|
+
| `Given there is no issue "Webship test …" in the project "webship-site"` | Removes any of the subject, with its notes and its time |
|
|
141
|
+
|
|
142
|
+
The project part is optional in both: the last project the scenario used, else `worldParameters.project`.
|
|
143
|
+
|
|
144
|
+
### The issue list
|
|
145
|
+
|
|
146
|
+
| Step | What it does |
|
|
147
|
+
| --- | --- |
|
|
148
|
+
| `When I open the issues of the project "webship-site"` | The project's list (its default query: the open issues) |
|
|
149
|
+
| `Then the issue list should show "…"` / `should not show "…"` | A row of the subject is (not) in the list on screen |
|
|
150
|
+
| `When I create an issue "Webship test …" in the project "webship-site"` | Through the form of a new issue (the project's default tracker), created. It goes after the scenario |
|
|
151
|
+
|
|
152
|
+
### One issue
|
|
153
|
+
|
|
154
|
+
| Step | What it does |
|
|
155
|
+
| --- | --- |
|
|
156
|
+
| `When I open the issue "…"` | Opens it by its subject |
|
|
157
|
+
| `When I set the status of the issue to "In Progress"` | Through its update form: the statuses the workflow of the account's role allows |
|
|
158
|
+
| `Then the status of the issue should be "In Progress"` | The status it shows |
|
|
159
|
+
| `When I add the note "…" to the issue` | Through its update form, and waits until its history lists it |
|
|
160
|
+
| `Then the issue should show the note "…"` (`… by "Member Test"`) | The history lists the note, written by that account when one is named |
|
|
161
|
+
| `When I log "0.5" hours on the issue` (`… with the comment "…"`) | Through its update form, on the site's first activity, for today |
|
|
162
|
+
| `Then the time spent on the issue should be "0:30 h"` | The spent time as it shows it |
|
|
163
|
+
| `When I assign the issue to "Member Test"` | Through its update form: someone the form lists |
|
|
164
|
+
| `Then the issue should be assigned to "Member Test"` | The assignee it shows |
|
|
165
|
+
|
|
166
|
+
### What an account may not do
|
|
167
|
+
|
|
168
|
+
| Step | What it does |
|
|
169
|
+
| --- | --- |
|
|
170
|
+
| `Then I should not be able to change the status of the issue` | Its update form has no status (a Reporter) |
|
|
171
|
+
| `Then I should not be able to assign the issue` | Its update form has no assignee (a Reporter) |
|
|
172
|
+
|
|
173
|
+
### Versions
|
|
174
|
+
|
|
175
|
+
| Step | What it does |
|
|
176
|
+
| --- | --- |
|
|
177
|
+
| `When I open the version "Sprint 1" of the project "webship-site"` | The version's own page |
|
|
178
|
+
| `Then the version should be "open"` | The state it shows (open, locked, closed) |
|
|
179
|
+
| `Then the version should list the issue "…"` / `should not list "…"` | What it holds |
|
|
180
|
+
| `When I open the roadmap of the project "webship-site"` | The project's roadmap |
|
|
181
|
+
| `Then the roadmap should list the version "Sprint 1"` / `should not list "…"` | The versions on it |
|
|
182
|
+
|
|
183
|
+
Every step carries five example phrasings in its JSDoc, and `npm run test:examples` checks that each one matches its
|
|
184
|
+
own step only.
|
|
185
|
+
|
|
186
|
+
## Rules of a suite
|
|
187
|
+
|
|
188
|
+
- Log in by a handle of the users registry; never write a password into a feature.
|
|
189
|
+
- Never create or delete an account in a suite: accounts are configuration, made by the build of the site.
|
|
190
|
+
- Change only what the scenario made: a status, a note, the time and an assignee go on an issue of
|
|
191
|
+
`Given there is an issue "…"`, which goes after the scenario with all of it. A note stays in the history.
|
|
192
|
+
- Name test content "Webship test …". A run that was stopped half way leaves its issues; the Workspace's
|
|
193
|
+
`cmd-tools-redmine-cli.sh <site> --tidy` removes them, or delete them as the managing account.
|
|
194
|
+
- A refusal the site answers with an error status (a wrong password, a project an account may not open) makes the
|
|
195
|
+
browser log a failed request: give those scenarios `@js-off`.
|
|
196
|
+
|
|
197
|
+
## Test users
|
|
198
|
+
|
|
199
|
+
The accounts the features log in as, each with the password `dD.123123ddd`:
|
|
200
|
+
|
|
201
|
+
| Handle | Login | Name | Role in Webship site |
|
|
202
|
+
| --- | --- | --- | --- |
|
|
203
|
+
| `owner` | `owner` | Owner Test | Manager (the managing account) |
|
|
204
|
+
| `member` | `member` | Member Test | Developer |
|
|
205
|
+
| `reader` | `reader` | Reader Test | Reporter |
|
|
206
|
+
| `stranger` | `stranger` | Stranger Test | No membership |
|
|
207
|
+
|
|
208
|
+
## The test site
|
|
209
|
+
|
|
210
|
+
`.github/scripts/build-ddev-site.sh` builds it, and `COUNTS_ONLY=1` makes it print what the site holds (issues, notes,
|
|
211
|
+
journals, journal details, time entries, versions, members, users, attachments, watchers): CI compares them before and
|
|
212
|
+
after each run. The sample content, in the project Webship site (`webship-site`):
|
|
213
|
+
|
|
214
|
+
- "The greeting script says Helo instead of Hello": a Bug by the owner, In Progress, assigned to Member Test, in the
|
|
215
|
+
version "Sprint 1", with a note;
|
|
216
|
+
- "The usage page spells greeting as greting": a Bug by the member, New;
|
|
217
|
+
- "An issue opened by someone outside the project": a Feature opened by the stranger.
|
|
218
|
+
|
|
219
|
+
The features read them and never change them.
|
|
220
|
+
|
|
221
|
+
## The assertions that must fail
|
|
222
|
+
|
|
223
|
+
`tests/must-fail/` holds scenarios that assert something that is not true on the test site; `npm run test:must-fail`
|
|
224
|
+
runs them and checks that each fails at its last step with the message its description announces, and a hint. A step
|
|
225
|
+
that cannot fail proves nothing.
|
|
226
|
+
|
|
227
|
+
## Logo
|
|
228
|
+
|
|
229
|
+
The logo is Redmine's, as [Simple Icons](https://simpleicons.org) 16.37.0 ships it (`redmine.svg`), in the colour the
|
|
230
|
+
set lists for it, under the licence the set gives it, CC BY-SA 2.5; its source is
|
|
231
|
+
https://www.redmine.org/projects/redmine/wiki/logo. It names the platform the pack tests.
|
|
232
|
+
|
|
233
|
+
## License
|
|
234
|
+
|
|
235
|
+
MIT (see `LICENSE`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webship-js/redmine-steps",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Cucumber step definitions for Redmine, the open-source project management and issue tracking software, a pack for webship-js (Playwright and Cucumber): logging in and out and its refusals, a project and who may see it, the issue list, one issue (its status through the workflow, its notes, the time spent on it, its assignee), a new issue, and the roadmap with its versions. Test content is made and removed through the site's own REST API, so a run leaves the site as it found it.",
|
|
5
|
+
"main": "tests/step-definitions/redmine-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
|
+
"redmine",
|
|
28
|
+
"project-management",
|
|
29
|
+
"issue-tracking",
|
|
30
|
+
"issues",
|
|
31
|
+
"time-tracking",
|
|
32
|
+
"cucumber",
|
|
33
|
+
"cucumber-js",
|
|
34
|
+
"playwright",
|
|
35
|
+
"bdd",
|
|
36
|
+
"gherkin",
|
|
37
|
+
"step-definitions",
|
|
38
|
+
"e2e-testing"
|
|
39
|
+
],
|
|
40
|
+
"author": "Webship.co",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/webship/redmine-steps.git"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/webship/redmine-steps/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/webship/redmine-steps#readme",
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">= 24.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"webship-js": "^2.0.16"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"tsx": "^4.23.0",
|
|
61
|
+
"webship-js": "^2.0.17"
|
|
62
|
+
},
|
|
63
|
+
"overrides": {
|
|
64
|
+
"@cucumber/cucumber": "^12"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@issues
|
|
2
|
+
Feature: Issues
|
|
3
|
+
A member reads the list, opens an issue, moves it through the workflow, adds a note to it, logs time on it and
|
|
4
|
+
assigns it; a new one is made through the form. What a scenario makes is removed after it.
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given I am a logged in user with the "member" user
|
|
8
|
+
|
|
9
|
+
Scenario: The list shows an issue, and leaves it once it is closed
|
|
10
|
+
Given there is an issue "Webship test list" in the project "webship-site"
|
|
11
|
+
When I open the issues of the project "webship-site"
|
|
12
|
+
Then the issue list should show "Webship test list"
|
|
13
|
+
When I open the issue "Webship test list"
|
|
14
|
+
And I set the status of the issue to "Closed"
|
|
15
|
+
Then the status of the issue should be "Closed"
|
|
16
|
+
When I open the issues of the project "webship-site"
|
|
17
|
+
Then the issue list should not show "Webship test list"
|
|
18
|
+
|
|
19
|
+
Scenario: A note, the time spent and the assignee of an issue
|
|
20
|
+
Given there is an issue "Webship test work" in the project "webship-site"
|
|
21
|
+
When I open the issue "Webship test work"
|
|
22
|
+
And I set the status of the issue to "In Progress"
|
|
23
|
+
And I add the note "Checked on the test site" to the issue
|
|
24
|
+
And I log "0.5" hours on the issue with the comment "Read the issue"
|
|
25
|
+
And I assign the issue to "Member Test"
|
|
26
|
+
Then the status of the issue should be "In Progress"
|
|
27
|
+
And the issue should show the note "Checked on the test site" by "Member Test"
|
|
28
|
+
And the time spent on the issue should be "0:30 h"
|
|
29
|
+
And the issue should be assigned to "Member Test"
|
|
30
|
+
|
|
31
|
+
Scenario: An issue made through the form
|
|
32
|
+
Given there is no issue "Webship test new" in the project "webship-site"
|
|
33
|
+
When I create an issue "Webship test new" in the project "webship-site"
|
|
34
|
+
Then the status of the issue should be "New"
|
|
35
|
+
When I open the issues of the project "webship-site"
|
|
36
|
+
Then the issue list should show "Webship test new"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@roles
|
|
2
|
+
Feature: What each account may do in the project
|
|
3
|
+
A Reporter reads the project's issues and adds notes, but neither moves nor assigns them, and an account with no
|
|
4
|
+
membership is refused the project.
|
|
5
|
+
|
|
6
|
+
Scenario: A Reporter neither moves nor assigns an issue
|
|
7
|
+
Given there is an issue "Webship test reporter" in the project "webship-site"
|
|
8
|
+
And I am a logged in user with the "reader" user
|
|
9
|
+
When I open the issue "Webship test reporter"
|
|
10
|
+
Then I should not be able to change the status of the issue
|
|
11
|
+
And I should not be able to assign the issue
|
|
12
|
+
|
|
13
|
+
@js-off
|
|
14
|
+
Scenario: An account with no membership is refused the project
|
|
15
|
+
Given I am a logged in user with the "stranger" user
|
|
16
|
+
Then I should be refused the project "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
|
+
When I log out
|
|
11
|
+
Then I should not be logged in
|
|
12
|
+
|
|
13
|
+
@js-off
|
|
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 "Invalid user or password"
|
|
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"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@versions
|
|
2
|
+
Feature: The versions and the roadmap
|
|
3
|
+
The sample project's version lists the issue planned in it, and the roadmap lists the version.
|
|
4
|
+
|
|
5
|
+
Scenario: A version and the roadmap
|
|
6
|
+
Given I am a logged in user with the "member" user
|
|
7
|
+
When I open the version "Sprint 1" of the project "webship-site"
|
|
8
|
+
Then the version should be "open"
|
|
9
|
+
And the version should list the issue "The greeting script says Helo instead of Hello"
|
|
10
|
+
And the version should not list the issue "The usage page spells greeting as greting"
|
|
11
|
+
When I open the roadmap of the project "webship-site"
|
|
12
|
+
Then the roadmap should list the version "Sprint 1"
|