Skip to content

Commit a3b3a8b

Browse files
committed
unset request count
1 parent 85a28c1 commit a3b3a8b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/lib/screenshot-testing/support/page-renderer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ PageRenderer.prototype.createPage = async function () {
108108
this.browserContext = await this.browser.createIncognitoBrowserContext();
109109
this.webpage = await this.browserContext.newPage();
110110

111+
if (this.activeRequestCount > 0) {
112+
console.log('activeRequestCount greater than 0');
113+
// unset active request count, to ensure request from previous suites don't cause any issues
114+
this.activeRequestCount = 0;
115+
}
116+
111117
PAGE_PROPERTIES_TO_PROXY.forEach((propertyName) => {
112118
Object.defineProperty(this, propertyName, {
113119
value: this.webpage[propertyName],

0 commit comments

Comments
 (0)