test(app): sheet list spec binds its SQL values, pins UTC, checks Escape
- the three fixture statements pass every value through literal(); the
sheet, draft and actor ids are refused unless they have the uuid shape
- test.use({ timezoneId: 'UTC' }): a row still in Paris time proves the
page sets the zone itself, whatever the host's
- the home ordering loop first asserts one <time> per item
- ratifiedDate escapes the dictionary text (escaped, now exported by
support/admin.ts)
- the long-search check types the text again and presses Escape: field
empty and focused, count back (Chromium's native type=search included)
R-24: no assertion removed or rewritten. Added: 'one date per home item'
(toHaveLength) before the unchanged ordering loop; the Escape block after
the unchanged button block. ratifiedDate builds the same pattern for the
current dictionaries (no RegExp character in them).
Run: admin-sheets-list 4 passed (fr, en x desktop, 375).
This commit is contained in:
1 parent
8bb2486a34
commit
ea5512af02
2 files changed
+36
-7
No files matched your search
@@ -174,7 +174,8 @@ export async function stepUpAdmin(page: Page, dict: Dict, secret: string) {
|
||||
await expect(stepUpHeading(page, dict)).toBeHidden()
|
||||
}
|
||||
|
||||
const escaped = (text: string) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
||||
/** A text matched literally inside a RegExp. */
|
||||
export const escaped = (text: string) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
||||
|
||||
/**
|
||||
* The link of the sheets card to the full list: « Toutes les fiches officielles »
|
||||
|
||||
Reference in new issue
Block a user