Skip to content

Commit 3bd1bbc

Browse files
committed
test(push): use getToggleState helper
1 parent 98964d6 commit 3bd1bbc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

appium/tests/specs/02_push.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { waitForAppReady, checkNotification, checkTooltip, scrollToEl } from '../helpers/app.js';
2+
import { getToggleState } from '../helpers/selectors.js';
23

34
describe('Push Subscription', () => {
45
before(async () => {
@@ -18,8 +19,8 @@ describe('Push Subscription', () => {
1819
expect(pushId.length).toBeGreaterThan(0);
1920

2021
const toggleEl = await scrollToEl('Enabled', { by: 'text' });
21-
const value = await toggleEl.getAttribute('value');
22-
expect(value).toBe('1');
22+
const value = await getToggleState(toggleEl);
23+
expect(value).toBe(true);
2324
});
2425

2526
it('can send an image notification', async () => {

0 commit comments

Comments
 (0)