Skip to content

Commit 5e3cb52

Browse files
Fix visibility assertions in rust-wasm Playwright tests
1 parent 3c0e022 commit 5e3cb52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust-wasm/e2e/tests/commonChecks.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ test.describe('Rust Wasm - Buttons behaviour', () => {
188188
await basePage.checkElementVisibility({
189189
selector: selectors.rustWasmApp.gameBoard,
190190
isVisible: false,
191-
notVisibleState: 'not.exist',
191+
notVisibleState: 'not.be.visible',
192192
});
193193

194194
await basePage.clickElementWithText({
@@ -212,7 +212,7 @@ test.describe('Rust Wasm - Buttons behaviour', () => {
212212
await basePage.checkElementVisibility({
213213
selector: selectors.rustWasmApp.gameBoard,
214214
isVisible: false,
215-
notVisibleState: 'not.exist',
215+
notVisibleState: 'not.be.visible',
216216
});
217217

218218
await basePage.clickElementWithText({

rust-wasm/e2e/tests/hostAppChecks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ test.describe('Rust Wasm - Host app checks', () => {
191191
await basePage.checkElementVisibility({
192192
selector: selectors.rustWasmApp.gameBoard,
193193
isVisible: false,
194-
notVisibleState: 'not.exist',
194+
notVisibleState: 'not.be.visible',
195195
});
196196

197197
await resetConsoleLogs(page);

0 commit comments

Comments
 (0)