relax text assertion to be any number (#5001)

This commit is contained in:
Scott Bell 2022-03-28 20:20:55 +02:00 committed by GitHub
parent 150909d4b9
commit 04d00fac3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,8 @@ test.describe('Sine Wave Generator', () => {
});
// Verify that where we click on canvas shows the number we clicked on
await expect(page.locator('.value-to-display-nearestValue')).toContainText('0.00');
// Note that any number will do, we just care that a number exists
await expect(page.locator('.value-to-display-nearestValue')).toContainText(/[+-]?([0-9]*[.])?[0-9]+/);
});
});