Skip to content

Commit

Permalink
Wait promise from test_driver.set_device_posture also in first test
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhaVainio committed Feb 23, 2024
1 parent 3831e1b commit 1b0487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device-posture/device-posture.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const watcher = new EventWatcher(t, navigator.devicePosture, ['change']);
const postures = ['folded', 'continuous', 'folded'];
for (const posture of postures) {
test_driver.set_device_posture(posture);
await test_driver.set_device_posture(posture);
await watcher.wait_for('change').then(() => {
assert_equals(posture, navigator.devicePosture.type);
});
Expand Down

0 comments on commit 1b0487d

Please sign in to comment.