Skip to content

Commit

Permalink
add data-testids to some components
Browse files Browse the repository at this point in the history
Co-authored-by: sug <sug@tutao.de>
  • Loading branch information
kibibytium and tuta-sudipg committed Jan 22, 2025
1 parent 2698fbb commit 9188cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gui/base/ColumnEmptyMessageBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class IconMessageBox implements Component<InfoMessaggeBoxAttrs> {
style: {
color: attrs.color,
},
"data-testid": "message-box",
"data-testid": `message_box:${lang.getTestId(attrs.message)}`,
},
lang.getTranslationText(attrs.message),
),
Expand Down
1 change: 1 addition & 0 deletions src/common/gui/base/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export class List<T, VH extends ViewHolder<T>> implements ClassComponent<ListAtt
this.renderSwipeItems(attrs),
// we need rel for the status indicator
m("ul.list.rel.click", {
"data-testid": "unordered_list",
oncreate: ({ dom }) => {
this.innerDom = dom as HTMLElement
this.initializeDom(dom as HTMLElement, attrs)
Expand Down
1 change: 1 addition & 0 deletions src/common/gui/base/ViewColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class ViewColumn implements Component<Attrs> {
".view-column.fill-absolute",
{
...landmark,
"data-testid": lang.getTranslationText(this.getTitle()),
inert: !this.isVisible && !this.isInForeground,
oncreate: (vnode) => {
this.domColumn = vnode.dom as HTMLElement
Expand Down

0 comments on commit 9188cae

Please sign in to comment.