chore: do not store project name in expectations
This commit is contained in:
parent
678c454fea
commit
5ebc94017a
|
|
@ -54,7 +54,8 @@ class ExpectationReporter implements Reporter {
|
||||||
const expectations = await parseExpectations(project.title);
|
const expectations = await parseExpectations(project.title);
|
||||||
for (const test of project.allTests()) {
|
for (const test of project.allTests()) {
|
||||||
const outcome = getOutcome(test);
|
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')
|
if (!expectations.has(key) || expectations.get(key) === 'unknown')
|
||||||
expectations.set(key, outcome);
|
expectations.set(key, outcome);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export async function createSkipTestPredicate(projectName: string): Promise<Shou
|
||||||
return () => false;
|
return () => false;
|
||||||
const expectationsMap = await parseBidiExpectations(projectName);
|
const expectationsMap = await parseBidiExpectations(projectName);
|
||||||
return (info: TestInfo) => {
|
return (info: TestInfo) => {
|
||||||
const key = [info.project.name, ...info.titlePath].join(' › ');
|
const key = info.titlePath.join(' › ');
|
||||||
const expectation = expectationsMap.get(key);
|
const expectation = expectationsMap.get(key);
|
||||||
return expectation === 'fail' || expectation === 'timeout';
|
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
Loading…
Reference in a new issue