Skip to content

Commit

Permalink
fixed timeout function: changed to playwright api used
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Feb 23, 2024
1 parent a3af866 commit d5e1794
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/e2e/specs/typography.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,8 @@ test.describe('typography', () => {

await fontInput.press('Enter');

await new Promise((resolve) => {
setTimeout(
() =>
resolve(
'Just wait 1 second for the selected font to be saved in the database after selection'
),
1000
);
});
// Just wait 1 second for the selected font to be saved in the database after selection.
await page.waitForTimeout(1000);

return wrapper;
}
Expand Down

0 comments on commit d5e1794

Please sign in to comment.