@terpjs/conformance 0.27.0 → 0.28.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type APIResponse, type Page } from "@playwright/test";
1
+ import { type APIResponse, type Locator, type Page } from "@playwright/test";
2
2
  /**
3
3
  * The administrator the base-profile flows sign in as. The default matches the bundled example
4
4
  * workbench's seed; a generated repo points these at its own seeded admin via
@@ -70,10 +70,33 @@ export declare function explainThrottling(page: Page, error: unknown): unknown;
70
70
  */
71
71
  export declare function assertNotThrottled(response: APIResponse): APIResponse;
72
72
  /**
73
- * Sign in through the real login screen. App-agnostic: the login screen and session are
74
- * base-profile (identical in every Terp app), so this is the reusable entry point any app's
75
- * conformance suite composes. Success is the sign-in screen being replaced by the app shell;
76
- * callers assert their own landing content afterwards.
73
+ * The sign-in screen's heading: on screen exactly while nobody is signed in. A spec asserts
74
+ * against this rather than against a heading's text, which is the app's to translate.
75
+ */
76
+ export declare function loginHeading(page: Page): Locator;
77
+ /**
78
+ * The app shell's primary navigation: rendered once, in the sidebar or the header, and only
79
+ * behind a session. A spec asserts against this rather than against the landmark's name.
80
+ */
81
+ export declare function primaryNavigation(page: Page): Locator;
82
+ /**
83
+ * Load the app, then fill and submit the sign-in form — holding every control to a name — and
84
+ * judge nothing about the outcome. {@link login} is this plus "the shell replaced the sign-in
85
+ * screen"; a spec about a sign-in that must be REFUSED (bad credentials, a deactivated account)
86
+ * calls this and asserts its own outcome.
87
+ */
88
+ export declare function submitLogin(page: Page, credentials: {
89
+ email: string;
90
+ password: string;
91
+ }): Promise<void>;
92
+ /**
93
+ * Sign in through the framework's sign-in screen. App-agnostic: that screen and the session are
94
+ * base-profile (the same in every Terp app that keeps the screen, in every locale it ships), so
95
+ * this is the reusable entry point any app's conformance suite composes. Success is the sign-in
96
+ * screen being replaced by the app shell; callers assert their own landing content afterwards.
97
+ *
98
+ * An app that replaces the screen (`renderTerpApp({ login: … })`) signs in from its own specs,
99
+ * by that screen's accessible names, and does not call this; here it fails saying so.
77
100
  */
78
101
  export declare function login(page: Page, credentials?: {
79
102
  email: string;
@@ -83,17 +106,8 @@ export declare function login(page: Page, credentials?: {
83
106
  * Sign out through the shell's account menu and assert the session is gone. Base-profile: the
84
107
  * user menu (avatar at the bottom of every Terp app's sidebar) opens Settings and Sign out;
85
108
  * sign-out revokes the token server-side (ADR 0031), so this is reusable across apps. Success
86
- * is the app shell being replaced by the sign-in screen.
87
- *
88
- * The trigger is located by its marker rather than by an accessible name, and that is a fix
89
- * rather than a shortcut. The name is deliberately not fixed: expanded, the button renders the
90
- * user's own email and role as visible text and takes its name from them, because an
91
- * `aria-label` REPLACES subtree text in the accessible name and would leave a voice-control
92
- * user with nothing to say that matches what they see (WCAG 2.5.3, Label in Name). Only the
93
- * collapsed icon rail carries a label, where the avatar is aria-hidden and the button would
94
- * otherwise have no name at all. So the name varies with the shell state AND with the signed-in
95
- * user, which makes it the wrong axis for an app-agnostic helper; `data-terp` is the stable one,
96
- * being a pinned inventory whose renames are release notes.
109
+ * is the app shell being replaced by the framework's sign-in screen, so an app that replaces
110
+ * that screen signs out from its own specs too, and here it fails saying so.
97
111
  */
98
112
  export declare function logout(page: Page): Promise<void>;
99
113
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;CAGjB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,0FAA0F;IAC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IAC3D,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAYnD;AAED,8CAA8C;AAC9C,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,SAAS,CAEnE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAarE;AAWD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,CAarE;AAoFD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAEhD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAErD;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,IAAI,EACV,WAAW,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED;;;;;;;;GAQG;AACH,wBAAsB,KAAK,CACzB,IAAI,EAAE,IAAI,EACV,WAAW,GAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAU,GACvD,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;;;;;GAMG;AACH,wBAAsB,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtD"}
package/dist/index.js CHANGED
@@ -122,27 +122,129 @@ export function assertNotThrottled(response) {
122
122
  "or serialise the suite.");
123
123
  }
124
124
  /**
125
- * Sign in through the real login screen. App-agnostic: the login screen and session are
126
- * base-profile (identical in every Terp app), so this is the reusable entry point any app's
127
- * conformance suite composes. Success is the sign-in screen being replaced by the app shell;
128
- * callers assert their own landing content afterwards.
125
+ * Where the base-profile screens are found: the `data-terp` markers `@terpjs/react-core` pins
126
+ * in its marker inventory (`markers.test.ts`), whose renames are release notes. Never an
127
+ * accessible name, for two reasons.
128
+ *
129
+ * A name is in the app's language, and the project template starts an app in Dutch. A helper
130
+ * looking for "Sign in" was therefore a helper for English apps: every other app failed its
131
+ * own conformance suite on the login screen before it had written a line of its own. A marker
132
+ * is the same string in every locale.
133
+ *
134
+ * And a name is not always fixed even in one language. The account menu's trigger takes its
135
+ * name from the signed-in user's own email and role when the sidebar is expanded, because an
136
+ * `aria-label` REPLACES subtree text in the accessible name and would leave a voice-control
137
+ * user with nothing to say that matches what they see (WCAG 2.5.3, Label in Name); only the
138
+ * collapsed icon rail carries a label. So its name varies with the shell state AND the user.
139
+ *
140
+ * Locating by marker alone would drop the one thing a name-based locator proved for free:
141
+ * that the control HAS a name. `getByLabel("Email")` could not find an unlabelled field, so
142
+ * the suite failed on exactly the defect a screen-reader user would hit. `expectNamed` puts
143
+ * that back without choosing a language: every control a helper touches must be visible,
144
+ * expose the role a user perceives, and carry a non-empty accessible name. An unlabelled field
145
+ * still fails here, in any locale.
146
+ *
147
+ * These are the framework's own screens, and the helpers drive nothing else. An app that
148
+ * replaces the sign-in screen (`renderTerpApp({ login: … })`) owns that screen, and its specs
149
+ * write their own sign-in steps, by the screen's own accessible names, instead of calling
150
+ * `login()` and `logout()`. It does not put these markers on its screen to be found: a
151
+ * `data-terp` marker is react-core's identity for a component, which its stylesheet is keyed
152
+ * on and its layout contract checks, so a marker an app writes forges both. When the heading
153
+ * is not there, the helpers fail saying so ({@link notTheFrameworkSignIn}).
129
154
  */
130
- export async function login(page, credentials = ADMIN) {
155
+ const LOGIN_HEADING = '[data-terp="login-title"]';
156
+ const LOGIN_EMAIL = '[data-terp="login-email"] [data-terp="input"]';
157
+ const LOGIN_PASSWORD = '[data-terp="login-password"] [data-terp="input"]';
158
+ const LOGIN_SUBMIT = '[data-terp="login-submit"] [data-terp="button"]';
159
+ const USER_MENU_TRIGGER = '[data-terp="user-menu"] [data-terp="menu-trigger"]';
160
+ const SIGN_OUT = '[data-terp="user-menu-sign-out"] [data-terp="menu-item"]';
161
+ const PRIMARY_NAVIGATION = '[data-terp="appshell-nav"]';
162
+ /**
163
+ * Visible, exposing *role*, and named — in whatever language the app speaks. *missing* is what
164
+ * the failure says first when the element never becomes visible.
165
+ */
166
+ async function expectNamed(locator, role, missing) {
167
+ await expect(locator, missing).toBeVisible();
168
+ await expect(locator).toHaveRole(role);
169
+ await expect(locator).toHaveAccessibleName(/\S/);
170
+ }
171
+ /**
172
+ * What a helper says when the framework's sign-in heading is not where it looked.
173
+ *
174
+ * An agent reads this, not the source, so it states what was observed, which screens the
175
+ * helpers drive, and the two ways forward for an app that replaced the sign-in screen, and
176
+ * it closes the way that looks shortest: writing the framework's markers into the app's
177
+ * screen.
178
+ */
179
+ function notTheFrameworkSignIn(when, page) {
180
+ const observed = when === "signing-in"
181
+ ? `The framework's sign-in screen is not on the page at ${page.url()}`
182
+ : `After signing out, the framework's sign-in screen did not appear at ${page.url()}`;
183
+ const otherwise = when === "signing-in"
184
+ ? "the page never showed the sign-in screen: check the address the suite drives."
185
+ : "signing out did not return to the sign-in screen, which is the failure to look into.";
186
+ return [
187
+ `${observed}: no ${LOGIN_HEADING} became visible.`,
188
+ " login(), submitLogin() and logout() drive react-core's own sign-in screen only.",
189
+ " If this app replaces it (renderTerpApp({ login: … })), that screen is the app's own, and so",
190
+ " are its sign-in steps. Either:",
191
+ " - sign in and out from the spec by the screen's own accessible names (getByLabel,",
192
+ " getByRole) instead of calling these helpers; or",
193
+ " - drop the `login` option, so the framework's screen renders again.",
194
+ " Do not add data-terp markers to the app's screen to be found: they are react-core's",
195
+ " identity for its own components, which its stylesheet and layout contract key on.",
196
+ ` If the app does not replace it, ${otherwise}`,
197
+ ].join("\n");
198
+ }
199
+ /**
200
+ * The sign-in screen's heading: on screen exactly while nobody is signed in. A spec asserts
201
+ * against this rather than against a heading's text, which is the app's to translate.
202
+ */
203
+ export function loginHeading(page) {
204
+ return page.locator(LOGIN_HEADING);
205
+ }
206
+ /**
207
+ * The app shell's primary navigation: rendered once, in the sidebar or the header, and only
208
+ * behind a session. A spec asserts against this rather than against the landmark's name.
209
+ */
210
+ export function primaryNavigation(page) {
211
+ return page.locator(PRIMARY_NAVIGATION);
212
+ }
213
+ /**
214
+ * Load the app, then fill and submit the sign-in form — holding every control to a name — and
215
+ * judge nothing about the outcome. {@link login} is this plus "the shell replaced the sign-in
216
+ * screen"; a spec about a sign-in that must be REFUSED (bad credentials, a deactivated account)
217
+ * calls this and asserts its own outcome.
218
+ */
219
+ export async function submitLogin(page, credentials) {
131
220
  watchForThrottling(page);
132
221
  await orThrottle(page, async () => {
133
222
  await page.goto("/");
134
- await expect(page.getByRole("heading", { name: "Sign in" })).toBeVisible();
223
+ const heading = page.locator(LOGIN_HEADING);
224
+ await expectNamed(heading, "heading", notTheFrameworkSignIn("signing-in", page));
225
+ const email = page.locator(LOGIN_EMAIL);
226
+ await expectNamed(email, "textbox");
227
+ await email.fill(credentials.email);
228
+ const password = page.locator(LOGIN_PASSWORD);
229
+ await expectNamed(password, "textbox");
230
+ await password.fill(credentials.password);
231
+ const submit = page.locator(LOGIN_SUBMIT);
232
+ await expectNamed(submit, "button");
233
+ await submit.click();
135
234
  });
136
- // By LABEL, not by placeholder. The login fields were placeholder-only until the labels
137
- // landed, and a placeholder was the only handle they had — which is the same defect from
138
- // the other side: a name that vanishes the moment a user types is not a name. Selecting
139
- // the way a user perceives the field is also what keeps this suite honest about
140
- // accessibility, since a field with no accessible name now fails here rather than being
141
- // reachable by a workaround.
142
- await page.getByLabel("Email", { exact: true }).fill(credentials.email);
143
- await page.getByLabel("Password", { exact: true }).fill(credentials.password);
144
- await page.getByRole("button", { name: "Sign in" }).click();
145
- await orThrottle(page, () => expect(page.getByRole("heading", { name: "Sign in" })).toHaveCount(0, {
235
+ }
236
+ /**
237
+ * Sign in through the framework's sign-in screen. App-agnostic: that screen and the session are
238
+ * base-profile (the same in every Terp app that keeps the screen, in every locale it ships), so
239
+ * this is the reusable entry point any app's conformance suite composes. Success is the sign-in
240
+ * screen being replaced by the app shell; callers assert their own landing content afterwards.
241
+ *
242
+ * An app that replaces the screen (`renderTerpApp({ login: … })`) signs in from its own specs,
243
+ * by that screen's accessible names, and does not call this; here it fails saying so.
244
+ */
245
+ export async function login(page, credentials = ADMIN) {
246
+ await submitLogin(page, credentials);
247
+ await orThrottle(page, () => expect(page.locator(LOGIN_HEADING)).toHaveCount(0, {
146
248
  timeout: 15_000,
147
249
  }));
148
250
  }
@@ -150,24 +252,20 @@ export async function login(page, credentials = ADMIN) {
150
252
  * Sign out through the shell's account menu and assert the session is gone. Base-profile: the
151
253
  * user menu (avatar at the bottom of every Terp app's sidebar) opens Settings and Sign out;
152
254
  * sign-out revokes the token server-side (ADR 0031), so this is reusable across apps. Success
153
- * is the app shell being replaced by the sign-in screen.
154
- *
155
- * The trigger is located by its marker rather than by an accessible name, and that is a fix
156
- * rather than a shortcut. The name is deliberately not fixed: expanded, the button renders the
157
- * user's own email and role as visible text and takes its name from them, because an
158
- * `aria-label` REPLACES subtree text in the accessible name and would leave a voice-control
159
- * user with nothing to say that matches what they see (WCAG 2.5.3, Label in Name). Only the
160
- * collapsed icon rail carries a label, where the avatar is aria-hidden and the button would
161
- * otherwise have no name at all. So the name varies with the shell state AND with the signed-in
162
- * user, which makes it the wrong axis for an app-agnostic helper; `data-terp` is the stable one,
163
- * being a pinned inventory whose renames are release notes.
255
+ * is the app shell being replaced by the framework's sign-in screen, so an app that replaces
256
+ * that screen signs out from its own specs too, and here it fails saying so.
164
257
  */
165
258
  export async function logout(page) {
166
259
  watchForThrottling(page);
167
260
  await orThrottle(page, async () => {
168
- await page.locator('[data-terp="user-menu"] [data-terp="menu-trigger"]').click();
169
- await page.getByRole("menuitem", { name: "Sign out" }).click();
170
- await expect(page.getByRole("heading", { name: "Sign in" })).toBeVisible();
261
+ const trigger = page.locator(USER_MENU_TRIGGER);
262
+ await expectNamed(trigger, "button");
263
+ await trigger.click();
264
+ const signOut = page.locator(SIGN_OUT);
265
+ await expectNamed(signOut, "menuitem");
266
+ await signOut.click();
267
+ const heading = page.locator(LOGIN_HEADING);
268
+ await expectNamed(heading, "heading", notTheFrameworkSignIn("signed-out", page));
171
269
  });
172
270
  }
173
271
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA+B,MAAM,kBAAkB,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,iBAAiB;IAC5D,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,8BAA8B;CAChF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,kBAAkB;IAC9D,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,8BAA8B;CACjF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,kBAAkB;IAC9D,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,8BAA8B;CACjF,CAAC;AAeF;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,IAAI,OAAO,EAAwB,CAAC;AACtD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;AAEpC,SAAS,MAAM,CAAC,KAAyB;IACvC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,CAAC,KA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
1
1
  {
2
2
  "name": "@terpjs/conformance",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "type": "module",
5
5
  "description": "Terp conformance \u2014 app-agnostic Playwright end-to-end flows over a running Terp stack (base profile: auth gating + session lifecycle) plus the login/role helpers an app's own e2e suite composes.",
6
6
  "main": "./dist/index.js",