Skip to content

Commit

Permalink
PROCESS: Carbon footprint evaluation should wait for full data loading.
Browse files Browse the repository at this point in the history
Playwright synchronizations seem to be broken in GreenFrame.
  • Loading branch information
benel committed Feb 5, 2025
1 parent 42a29f9 commit 9890d74
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 30 deletions.
8 changes: 6 additions & 2 deletions requirements/.greenframe.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
projectName: Hyperglosae
baseURL: http://localhost
scenarios:
- name: Public browsing
path: ./scenario.js
- name: Bookshelf
path: ./impact_of_bookshelf.js
- name: Parallel texts
path: ./impact_of_parallel_texts.js
- name: Text with scholia
path: ./impact_of_text_with_scholia.js
containers:
- hyperglosae-proxy-1
databaseContainers:
Expand Down
16 changes: 16 additions & 0 deletions requirements/impact_of_bookshelf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Playwright scenario to be used with GreenFrame
*/

module.exports = async (page) => {

await page.goto("", {
waitUntil: 'networkidle0'
});
await page.waitForTimeout(10000);
await page.scrollToEnd();
await page.waitForNetworkIdle();
await page.waitForTimeout(7000);

};

16 changes: 16 additions & 0 deletions requirements/impact_of_parallel_texts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Playwright scenario to be used with GreenFrame
*/

module.exports = async (page) => {

await page.goto("37b4b9ba5cdb11ed887beb5c373fa643#09c906c6732b11ed89466ba197585f87", {
waitUntil: 'networkidle0'
});
await page.waitForTimeout(10000);
await page.scrollToEnd();
await page.waitForNetworkIdle();
await page.waitForTimeout(7000);

};

16 changes: 16 additions & 0 deletions requirements/impact_of_text_with_scholia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Playwright scenario to be used with GreenFrame
*/

module.exports = async (page) => {

await page.goto("05b61f5285c711ed97bf6b9b56808c45#6327c5008d1f11ed9aa8e7ae771dee2e", {
waitUntil: 'networkidle0'
});
await page.waitForTimeout(10000);
await page.scrollToEnd();
await page.waitForNetworkIdle();
await page.waitForTimeout(7000);

};

28 changes: 0 additions & 28 deletions requirements/scenario.js

This file was deleted.

0 comments on commit 9890d74

Please sign in to comment.