Skip to content

Commit dc9def2

Browse files
committed
chore: address review comment
1 parent d874de1 commit dc9def2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/wasm-sdk/test/ui-automation/utils/wasm-sdk-page.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ class WasmSdkPage extends BaseTest {
383383
const banner = this.page.locator(this.selectors.statusBanner);
384384
const classList = await banner.getAttribute('class');
385385

386+
// Handle null classList gracefully
387+
if (!classList) return 'unknown';
388+
386389
if (classList.includes('success')) return 'success';
387390
if (classList.includes('error')) return 'error';
388391
if (classList.includes('loading')) return 'loading';

0 commit comments

Comments
 (0)