chore: do not store project name in expectations (#32575)

This commit is contained in:
Yury Semikhatsky 2024-09-11 15:15:10 -07:00 committed by GitHub
parent 678c454fea
commit d1926e2f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7762 additions and 7761 deletions

View File

@ -54,7 +54,8 @@ class ExpectationReporter implements Reporter {
const expectations = await parseExpectations(project.title);
for (const test of project.allTests()) {
const outcome = getOutcome(test);
const key = test.titlePath().slice(1).join(' ');
// Strip root and project names.
const key = test.titlePath().slice(2).join(' ');
if (!expectations.has(key) || expectations.get(key) === 'unknown')
expectations.set(key, outcome);
}

View File

@ -27,7 +27,7 @@ export async function createSkipTestPredicate(projectName: string): Promise<Shou
return () => false;
const expectationsMap = await parseBidiExpectations(projectName);
return (info: TestInfo) => {
const key = [info.project.name, ...info.titlePath].join(' ');
const key = info.titlePath.join(' ');
const expectation = expectationsMap.get(key);
return expectation === 'fail' || expectation === 'timeout';
};

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff