Skip to content

Commit

Permalink
fix spec properties
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Sep 14, 2023
1 parent 25ed7c8 commit cfe03d0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 16 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions e2e/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@ export const avoidablePropertiesCy13: AvoidableProperty[] = [
property: "cypressVersion",
mustHave: true,
},
{
property: "specFileExtension",
mustHave: false,
},
{
property: "relativeToCommonRoot",
mustHave: false,
},
{
property: "specType",
mustHave: false,
},
// {
// property: "specFileExtension",
// mustHave: false,
// },
// {
// property: "relativeToCommonRoot",
// mustHave: false,
// },
// {
// property: "specType",
// mustHave: false,
// },
{
property: "cypressBinaryRoot",
mustHave: false,
Expand Down
5 changes: 5 additions & 0 deletions packages/cypress-cloud/lib/results/combine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ function getSpecResults(specResults: SpecResult, attempts?: any[]) {
return test;
}
);
const specNameSplitted = specResults.spec.name.split(".");
return {
..._.cloneDeep(specResults),
tests: enhancedTestList,
spec: {
..._.cloneDeep(specResults.spec),
baseName: specResults.spec.name,
specFileExtension: "." + specNameSplitted.slice(1).join("."),
relativeToCommonRoot: specResults.spec.name,
specType: "integration",
name: specResults.spec.relative,
},
hooks: [],
};
Expand Down

0 comments on commit cfe03d0

Please sign in to comment.