@@ -169,9 +169,7 @@ describe("WhatsApp card actions", () => {
|
169 | 169 | onWhatsAppStart, |
170 | 170 | }); |
171 | 171 | |
172 | | -expect(labels).toContain("Show QR"); |
173 | | -expect(labels).not.toContain("Relink"); |
174 | | -expect(labels).not.toContain("Wait for scan"); |
| 172 | +expect(labels).toEqual(["Save", "Reload", "Show QR", "Logout", "Refresh"]); |
175 | 173 | |
176 | 174 | const showQr = buttons.find((button) => button.textContent?.trim() === "Show QR"); |
177 | 175 | expect(showQr).toBeInstanceOf(HTMLButtonElement); |
@@ -186,8 +184,7 @@ describe("WhatsApp card actions", () => {
|
186 | 184 | onWhatsAppStart, |
187 | 185 | }); |
188 | 186 | |
189 | | -expect(labels).toContain("Relink"); |
190 | | -expect(labels).not.toContain("Show QR"); |
| 187 | +expect(labels).toEqual(["Save", "Reload", "Relink", "Logout", "Refresh"]); |
191 | 188 | |
192 | 189 | const relink = buttons.find((button) => button.textContent?.trim() === "Relink"); |
193 | 190 | expect(relink).toBeInstanceOf(HTMLButtonElement); |
@@ -201,7 +198,6 @@ describe("WhatsApp card actions", () => {
|
201 | 198 | qrDataUrl: "data:image/png;base64,current-qr", |
202 | 199 | }); |
203 | 200 | |
204 | | -expect(labels).toContain("Show QR"); |
205 | | -expect(labels).toContain("Wait for scan"); |
| 201 | +expect(labels).toEqual(["Save", "Reload", "Show QR", "Wait for scan", "Logout", "Refresh"]); |
206 | 202 | }); |
207 | 203 | }); |