Skip to content

Commit effbfb0

Browse files
committed
style: lint
1 parent b866eca commit effbfb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/alert/test/a11y/alert.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ const testAria = async (
2121
const subHeader = alert.locator('.alert-sub-title');
2222

2323
// If a header exists, it should be an h2 element
24-
if (await header.count() > 0) {
24+
if ((await header.count()) > 0) {
2525
const headerTagName = await header.evaluate((el) => el.tagName);
2626
expect(headerTagName).toBe('H2');
2727
}
2828

2929
// If a header and subHeader exist, the subHeader should be an h3 element
30-
if (await header.count() > 0 && await subHeader.count() > 0) {
30+
if ((await header.count()) > 0 && (await subHeader.count()) > 0) {
3131
const subHeaderTagName = await subHeader.evaluate((el) => el.tagName);
3232
expect(subHeaderTagName).toBe('H3');
3333
}
3434

3535
// If a subHeader exists without a header, the subHeader should be an h2 element
36-
if (await header.count() === 0 && await subHeader.count() > 0) {
36+
if ((await header.count()) === 0 && (await subHeader.count()) > 0) {
3737
const subHeaderTagName = await subHeader.evaluate((el) => el.tagName);
3838
expect(subHeaderTagName).toBe('H2');
3939
}

0 commit comments

Comments
 (0)