Skip to content

Commit a83e5d0

Browse files
author
NarrowsProjects
committed
EXPERIMENT: test for un timing
1 parent d01cc50 commit a83e5d0

1 file changed

Lines changed: 43 additions & 3 deletions

File tree

test/public/runs/runsPerDataPass.overview.test.js

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,20 @@ module.exports = () => {
431431
it('should successfully apply detectors filter', async () => {
432432
await navigateToRunsPerDataPass(page, 2, 2, 3);
433433

434-
await pressElement(page, '#openFilterToggle');
434+
try {
435+
await pressElement(page, '#openFilterToggle');
436+
} catch (error) {
437+
console.log('Testing if the failure is a timing issue');
438+
console.log('Testing if the failure is a timing issue');
439+
console.log('Testing if the failure is a timing issue');
440+
console.log('Testing if the failure is a timing issue');
441+
console.log('Testing if the failure is a timing issue');
442+
console.log('Testing if the failure is a timing issue');
443+
console.log('Testing if the failure is a timing issue');
444+
445+
await new Promise((res, _rej)=> setTimeout(() => res(), 10000))
446+
await pressElement(page, '#openFilterToggle');
447+
}
435448

436449
await pressElement(page, '.detectors-filter .dropdown-trigger');
437450
await pressElement(page, '#detector-filter-dropdown-option-CPV', true);
@@ -443,7 +456,20 @@ module.exports = () => {
443456

444457
it('should successfully apply tags filter', async () => {
445458
await navigateToRunsPerDataPass(page, 2, 1, 3);
446-
await pressElement(page, '#openFilterToggle');
459+
try {
460+
await pressElement(page, '#openFilterToggle');
461+
} catch (error) {
462+
console.log('Testing if the failure is a timing issue');
463+
console.log('Testing if the failure is a timing issue');
464+
console.log('Testing if the failure is a timing issue');
465+
console.log('Testing if the failure is a timing issue');
466+
console.log('Testing if the failure is a timing issue');
467+
console.log('Testing if the failure is a timing issue');
468+
console.log('Testing if the failure is a timing issue');
469+
470+
await new Promise((res, _rej)=> setTimeout(() => res(), 10000))
471+
await pressElement(page, '#openFilterToggle');
472+
}
447473

448474
await pressElement(page, '.tags-filter .dropdown-trigger');
449475

@@ -458,7 +484,21 @@ module.exports = () => {
458484

459485
it('should successfully apply duration filter', async () => {
460486
await navigateToRunsPerDataPass(page, 2, 2, 3);
461-
await pressElement(page, '#openFilterToggle');
487+
488+
try {
489+
await pressElement(page, '#openFilterToggle');
490+
} catch (error) {
491+
console.log('Testing if the failure is a timing issue');
492+
console.log('Testing if the failure is a timing issue');
493+
console.log('Testing if the failure is a timing issue');
494+
console.log('Testing if the failure is a timing issue');
495+
console.log('Testing if the failure is a timing issue');
496+
console.log('Testing if the failure is a timing issue');
497+
console.log('Testing if the failure is a timing issue');
498+
499+
await new Promise((res, _rej)=> setTimeout(() => res(), 10000))
500+
await pressElement(page, '#openFilterToggle');
501+
}
462502

463503
await page.select('.runDuration-filter select', '>=');
464504

0 commit comments

Comments
 (0)