Skip to content

Commit 58a0227

Browse files
test: refine tic-tac-toe E2E test assertion to be whitespace-insensitive
1 parent ba3cc0d commit 58a0227

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web-app/tests-e2e/tic-tac-toe.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ test.describe('Tic Tac Toe E2E Game', () => {
108108

109109
// Verify final title
110110
const finalTitle = finalScreen.locator('#final-title');
111-
await expect(finalTitle).toHaveText(' Alice Wins the Match!');
111+
await expect(finalTitle).toContainText('Alice Wins the Match!');
112112

113113
// Click rematch button
114114
const rematchBtn = finalScreen.locator('#rematch-btn');

0 commit comments

Comments
 (0)