Skip to content

Commit

Permalink
Ignore system files
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheiy committed Jun 26, 2024
1 parent 708438b commit 0e740f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uui-e2e-tests/framework/utils/testBuilderContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ export class TestBuilderContext {
const obsoleteScr: string[] = [];
const issuesArr: TIssues = [];
engines.forEach((engineName) => {
if (!Object.values(TEngine).includes(engineName as TEngine)) {
return;
}
const enginePath = path.resolve(rootDir, engineName);
fs.readdirSync(enginePath).forEach((fileName) => {
if (!fileName.endsWith('.png')) {
return;
}
const testName = path.basename(fileName, '.png');
const scrFileFullPath = path.resolve(enginePath, fileName);
const scrSize = fs.statSync(scrFileFullPath).size;
Expand Down

0 comments on commit 0e740f1

Please sign in to comment.