Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee613836d1 | |||
4b53173618 | |||
46a0220273 | |||
46a6c903e1 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartssr",
|
||||
"version": "1.0.21",
|
||||
"version": "1.0.23",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartssr",
|
||||
"version": "1.0.21",
|
||||
"version": "1.0.23",
|
||||
"private": false,
|
||||
"description": "a smart server side renderer supporting shadow dom",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -13,13 +13,13 @@ tap.test('should start the smartssr instance', async () => {
|
||||
await testSSRInstance.start();
|
||||
});
|
||||
|
||||
tap.skip.test('should render central.eu', async (tools) => {
|
||||
tap.test('should render central.eu', async (tools) => {
|
||||
await testSSRInstance.renderPage(
|
||||
'https://central.eu/article/5e76873b9cf69b7bf6bc78bc/Introducing%3A%20central.eu'
|
||||
'https://in.work'
|
||||
);
|
||||
});
|
||||
|
||||
tap.test('should render lossless.com', async () => {
|
||||
tap.skip.test('should render lossless.com', async () => {
|
||||
await testSSRInstance.renderPage('https://lossless.com');
|
||||
});
|
||||
|
||||
|
@ -51,7 +51,7 @@ export class SmartSSR {
|
||||
renderTimeMeasurement.start();
|
||||
await page.goto(urlArg, {
|
||||
waitUntil: 'networkidle2',
|
||||
timeout: 0
|
||||
timeout: 30000
|
||||
});
|
||||
|
||||
let screenshotBuffer: Buffer;
|
||||
|
@ -69,6 +69,9 @@ export function serializeFunction(rootNode) {
|
||||
noteForAppending.push(childNode);
|
||||
}
|
||||
});
|
||||
while(nodeArg.firstChild) {
|
||||
nodeArg.removeChild(nodeArg.firstChild);
|
||||
}
|
||||
noteForAppending.forEach((childNode) => {
|
||||
nodeArg.append(childNode);
|
||||
});
|
||||
|
Reference in New Issue
Block a user