Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/e2e/cheerio-curl-impersonate-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/cheerio-default-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/cheerio-impit-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/cheerio-max-requests/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ await Actor.main(async () => {
}
} else if (label === 'DETAIL') {
const uniqueIdentifier = url.split('/').slice(-2).join('/');
const title = $('header h1').text();
const firstParagraph = $('header + p').text();
const title = $('.markdown h1').text();
const firstParagraph = $('.markdown > p').text();
const modifiedDate = $('.theme-last-updated time').attr('datetime');

await Dataset.pushData({
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/cheerio-page-info/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ router.addHandler('DETAIL', async ({ request, $ }) => {
const { url } = request;

const uniqueIdentifier = url.split('/').slice(-2).join('/');
const title = $('header h1').text();
const firstParagraph = $('header + p').text();
const title = $('.markdown h1').text();
const firstParagraph = $('.markdown > p').text();
const modifiedDate = $('.theme-last-updated time').attr('datetime');

await Dataset.pushData({
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/cheerio-stop-resume-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/jsdom-default-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/jsdom-react-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/linkedom-default-ts/actor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"@types/node": "^24.0.0"
},
"scripts": {
"start": "tsc && node main.js",
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/puppeteer-page-info/actor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ await Actor.main(async () => {

const uniqueIdentifier = url.split('/').slice(-2).join('/');

const titleP = page.$eval('header h1', (el) => el.textContent);
const firstParagraphP = page.$eval('header + p', (el) => el.textContent);
const titleP = page.$eval('.markdown h1', (el) => el.textContent);
const firstParagraphP = page.$eval('.markdown > p', (el) => el.textContent);
const modifiedDateP = page.$eval('.theme-last-updated time', (el) => el.getAttribute('datetime'));
const [title, description, modifiedDate] = await Promise.all([titleP, firstParagraphP, modifiedDateP]);

Expand Down
Loading