Skip to content

Commit eedd59c

Browse files
author
NarrowsProjects
committed
EXPERIMENT: add a fail test wait to seee if the issue is based on timing
1 parent 3d375d6 commit eedd59c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

test/public/envs/detailsPage.test.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,18 @@ module.exports = () => {
111111
);
112112

113113
await waitForNavigation(page, () => pressElement(page, '#env-overview'));
114-
await waitForNavigation(page, () => pressElement(page, '#rowDxi029djX a:first-of-type'));
114+
try {
115+
await waitForNavigation(page, () => pressElement(page, '#rowDxi029djX a:first-of-type'));
116+
} catch {
117+
for (let i = 0; i < 100; i++) {
118+
console.log('Test failed waiting 10 seconds to see if it is an timing issue');
119+
}
120+
await new Promise((res, _rej) => {
121+
setTimeout(()=> res(), 10000);
122+
});
123+
124+
await waitForNavigation(page, () => pressElement(page, '#rowDxi029djX a:first-of-type'));
125+
}
115126
await pressElement(page, '#raw-configuration-tab');
116127

117128
await expectInnerText(

0 commit comments

Comments
 (0)