Skip to content

Commit 9188cae

Browse files
add data-testids to some components
Co-authored-by: sug <sug@tutao.de>
1 parent 2698fbb commit 9188cae

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/common/gui/base/ColumnEmptyMessageBox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class IconMessageBox implements Component<InfoMessaggeBoxAttrs> {
3636
style: {
3737
color: attrs.color,
3838
},
39-
"data-testid": "message-box",
39+
"data-testid": `message_box:${lang.getTestId(attrs.message)}`,
4040
},
4141
lang.getTranslationText(attrs.message),
4242
),

src/common/gui/base/List.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export class List<T, VH extends ViewHolder<T>> implements ClassComponent<ListAtt
149149
this.renderSwipeItems(attrs),
150150
// we need rel for the status indicator
151151
m("ul.list.rel.click", {
152+
"data-testid": "unordered_list",
152153
oncreate: ({ dom }) => {
153154
this.innerDom = dom as HTMLElement
154155
this.initializeDom(dom as HTMLElement, attrs)

src/common/gui/base/ViewColumn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class ViewColumn implements Component<Attrs> {
8383
".view-column.fill-absolute",
8484
{
8585
...landmark,
86+
"data-testid": lang.getTranslationText(this.getTitle()),
8687
inert: !this.isVisible && !this.isInForeground,
8788
oncreate: (vnode) => {
8889
this.domColumn = vnode.dom as HTMLElement

0 commit comments

Comments
 (0)