feat(editor): board 01 annotation card, side column from 1 024 px
Annotations of the view move from under the drawing to the overview card (grouped by category, name filter, all rows); side column from lg. Properties panel gains « Toutes les annotations ». E2E mapping (R-24): after a creation the card is hidden (the new annotation is selected), so list(...).getByText(name) became selectionTag toContainText (annotations, geometry, journey); row clicks go through pickAnnotation (annotations, geometry, journey, structures); geometry's list count 0 while a creation is pending became selectionTag count 0.
This commit is contained in:
1 parent
51fd3db608
commit
6131225288
16 files changed
+404
-94
No files matched your search
@@ -488,6 +488,24 @@ export const creationPanel = (page: Page) =>
|
||||
export const annotationList = (page: Page, dict: Dict) =>
|
||||
page.getByRole('list', { name: dict['editor.annotations.list'] })
|
||||
|
||||
/** The tag over the drawing while an annotation is selected (the card is then hidden). */
|
||||
export const selectionTag = (page: Page) =>
|
||||
page.getByTestId('annotation-selection-tag')
|
||||
|
||||
/** Selects an annotation from the overview card, leaving a selection first when there is one. */
|
||||
export async function pickAnnotation(
|
||||
page: Page,
|
||||
dict: Dict,
|
||||
name: RegExp | string,
|
||||
) {
|
||||
const all = page.getByRole('button', {
|
||||
name: dict['editor.annotations.show_all'],
|
||||
exact: true,
|
||||
})
|
||||
if (await all.isVisible()) await all.click()
|
||||
await annotationList(page, dict).getByRole('button', { name }).click()
|
||||
}
|
||||
|
||||
export const toolButton = (page: Page, dict: Dict, id: string) =>
|
||||
page.getByRole('button', {
|
||||
name: dict[`editor.annotations.tool.${id}`],
|
||||
|
||||
Reference in new issue
Block a user