fix: replace all async foreach callbacks (#10157)
Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
83aea7d28c
commit
c1bcfcfa3d
8 files changed
+266
-240
No files matched your search
@@ -158,9 +158,10 @@ test.describe("pro user", () => {
|
||||
|
||||
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
|
||||
|
||||
additionalGuests.forEach(async (email) => {
|
||||
const promises = additionalGuests.map(async (email) => {
|
||||
await expect(page.locator(`[data-testid="attendee-email-${email}"]`)).toHaveText(email);
|
||||
});
|
||||
await Promise.all(promises);
|
||||
});
|
||||
|
||||
test("Time slots should be reserved when selected", async ({ context, page }) => {
|
||||
|
||||
Reference in new issue
Block a user