Skip to content

Commit 70ce8c7

Browse files
committed
Data may be not be passed always
1 parent 86f6e90 commit 70ce8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/e2e/trafficlight/trafficlight.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function runAction(action: string, data: JSONValue): string | undefined {
123123
return "logged_out";
124124
}
125125
case 'start_crosssign':
126-
if (data["userId"]) {
126+
if (data?.["userId"]) {
127127
cy.get(".mx_RightPanel_roomSummaryButton").click();
128128
cy.get(".mx_RoomSummaryCard_icon_people").click();
129129
cy.get(".mx_MemberList_query").type(data["userId"]);

0 commit comments

Comments
 (0)