Skip to content

Commit c9468f7

Browse files
committedMar 13, 2020
Click to set goals completed checkbox
Setting the checked value on the goals checkbox directly was not working properly. Changed this so that it now clicks the box to set the value.
1 parent 0a57a01 commit c9468f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ async function postLogsToStatusHero(logs) {
3232
await page.goto('https://statushero.com/teams/finance/statuses/current/edit');
3333
await page.evaluate(() => {
3434
document.getElementById('answer_set_previous').value = '';
35-
document.getElementById('answer_set_previous_completed').checked = true;
3635
});
3736
await page.focus('#answer_set_previous');
3837
await page.keyboard.type(logs);
38+
await page.click('#answer_set_previous_completed');
3939
if (config.willSubmit) await page.click('.btn-success');
4040
}

0 commit comments

Comments
 (0)
Please sign in to comment.