Skip to content

Commit

Permalink
Update puppeteer from 3.3.0 to 19.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Nov 17, 2022
1 parent cf52f01 commit 4d5ef93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [ '10', '12', '14', '16', '18' ]
node: [ '14', '16', '18' ]

steps:
- name: Clone repository
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -11,7 +11,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/innovativeinnovation/create-servicenow-change-request.git",
"engines": {
"node": ">=10"
"node": ">=14"
},
"bin": {
"create-servicenow-change-request": "src/bin/create-servicenow-change-request.js",
Expand Down Expand Up @@ -42,7 +42,7 @@
"log-symbols": "^4.0.0",
"moment": "^2.26.0",
"node-alias": "^1.0.4",
"puppeteer": "^3.3.0",
"puppeteer": "^19.2.2",
"yargs": "^15.3.1"
}
}
8 changes: 4 additions & 4 deletions src/bin/csncr.js
Expand Up @@ -126,7 +126,7 @@ async function createChange (
await page.goto(userConfig.host + '/change_request.do?' +
'sys_id=-1&sysparm_stack=change_request_list.do&' +
'sysparm_query=type=Standard^EQ&active=true');
await page.waitFor(5000);
await page.waitForTimeout(5000);
await page.goto(userConfig.host + '/change_request.do?' +
'sys_id=-1&sysparm_stack=change_request_list.do&' +
'sysparm_query=type=Standard^EQ&active=true');
Expand Down Expand Up @@ -213,7 +213,7 @@ async function closeTask (
} else {
throw new Error('Link not found');
}
await page.waitFor(3000);
await page.waitForTimeout(3000);
await page.evaluate(
(startDate, endDate) => {
document.getElementById('change_task.change_request.work_start').value =
Expand Down Expand Up @@ -244,7 +244,7 @@ async function createChangeRequest (
page, userConfig, appConfig, startDate, endDate, changelogInfo
);

await page.waitFor(2000);
await page.waitForTimeout(2000);
const linkHandlers = await page.$x(
'//a[contains(text(), \'' + changeNum + '\')]'
);
Expand All @@ -254,7 +254,7 @@ async function createChangeRequest (
throw new Error('Link not found');
}

await page.waitFor(3000);
await page.waitForTimeout(3000);
await closeTask(
page, userConfig, appConfig, startDate, endDate, changelogInfo
);
Expand Down

0 comments on commit 4d5ef93

Please sign in to comment.