@webship-js/immich-steps 2.0.0 → 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/README.md +3 -1
- package/package.json +1 -1
- package/tests/features/sign-in.feature +5 -0
package/README.md
CHANGED
|
@@ -106,7 +106,9 @@ users: {
|
|
|
106
106
|
`admin` is the library's first admin. It is the managing account, which makes and removes the test accounts.
|
|
107
107
|
|
|
108
108
|
An account meets Immich's first-run wizard on its first sign-in (theme, language, privacy, storage, backups, the
|
|
109
|
-
mobile app).
|
|
109
|
+
mobile app). Immich keeps two flags for it: the account's own (`PUT /api/users/me/onboarding`) and, for an admin, the
|
|
110
|
+
library's own setup (`POST /api/system-metadata/admin-onboarding`). An admin meets the wizard until both are set. The
|
|
111
|
+
Webship Workspace's accounts have met it already, and so have the demo's. A library's own account may not have: `When I get
|
|
110
112
|
past the library's first-run wizard` gets it to its timeline. A scenario that needs an account of its own makes one
|
|
111
113
|
with `Given the library has a new account "newcomer"`.
|
|
112
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webship-js/immich-steps",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Cucumber step definitions for Immich, the self-hosted photo and video library, for webship-js: signing in through the form or the API (a session, a token or an API key), uploads waited on until the library holds them, the timeline and the photo viewer by the date a photo was taken, favorites, the trash with its Undo, albums, shared links opened signed out, search by file name, and the library's messages and confirmations read by their text. The test content is removed after each scenario and the counts checked. No step phrase names the product.",
|
|
5
5
|
"main": "tests/step-definitions/immich-helpers.js",
|
|
6
6
|
"files": [
|
|
@@ -7,6 +7,11 @@ Feature: Signing in to the library
|
|
|
7
7
|
When I sign in to the library as "user"
|
|
8
8
|
Then I should see "Click to upload your first photo"
|
|
9
9
|
|
|
10
|
+
# An admin meets the library's own first-run setup too, until it is marked done (the demo's build script does).
|
|
11
|
+
Scenario: The library's admin signs in through the form, and its timeline opens
|
|
12
|
+
When I sign in to the library as "admin"
|
|
13
|
+
Then I should see "Click to upload your first photo"
|
|
14
|
+
|
|
10
15
|
# The browser logs the refused sign-in (a 401) as a console error: the refusal is what the scenario checks.
|
|
11
16
|
@js-warn
|
|
12
17
|
Scenario: A wrong password is refused, and the form says so
|