Skip to content

Commit bc4e002

Browse files
authored
qa: don't add pages from WACZ files that have fromDependency set (#1010)
Skip WACZ entries in the resources list that are dependencies, eg. have `fromDependency` set. These WACZ files are used for replay when needed, but the pages should not be included in QA runs. Fixes #1011
1 parent 4aa883e commit bc4e002

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/replaycrawler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ export class ReplayCrawler extends Crawler {
183183
} else {
184184
// otherwise, parse pages from WACZ files
185185
for (const entry of json.resources) {
186+
if (entry.fromDependency) {
187+
continue;
188+
}
186189
if (entry.path) {
187190
await this.loadPages(entry.path);
188191
}

0 commit comments

Comments
 (0)