mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: do not store project name in expectations (#32575)
This commit is contained in:
parent
678c454fea
commit
d1926e2f9b
@ -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…
x
Reference in New Issue
Block a user