Skip to content

Commit

Permalink
fix: functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 3, 2024
1 parent 36287b8 commit 68bebb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions frontend/tests/functional/user-route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ test('user usual routine actions are working correctly', async ({
await pages.complianceAssessmentsPage.createItem({
name: vars.assessmentName,
description: vars.description,
project: vars.projectName,
project: vars.folderName + '/' + vars.projectName,
version: '1.4.2',
status: 'Done',
framework: vars.framework.name,
Expand Down Expand Up @@ -178,7 +178,7 @@ test('user usual routine actions are working correctly', async ({
await pages.riskAssessmentsPage.createItem({
name: vars.riskAssessmentName,
description: vars.description,
project: vars.projectName,
project: vars.folderName + '/' + vars.projectName,
version: '1.4.2',
status: 'Done',
risk_matrix: vars.matrix.displayName,
Expand Down Expand Up @@ -212,7 +212,7 @@ test('user usual routine actions are working correctly', async ({
await pages.riskScenariosPage.createItem({
name: vars.riskScenarioName,
description: vars.description,
risk_assessment: `${vars.projectName}/${vars.riskAssessmentName}`,
risk_assessment: `${vars.folderName}/${vars.projectName}/${vars.riskAssessmentName}`,
threats: [`${vars.folderName}/${vars.threatName}`]
});

Expand Down
6 changes: 3 additions & 3 deletions frontend/tests/utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export class TestContent {
build: {
name: vars.assessmentName,
description: vars.description,
project: vars.projectName,
project: vars.folderName + '/' + vars.projectName,
status: 'Planned',
// version: "1.4.2",
framework: vars.framework.name
Expand Down Expand Up @@ -517,7 +517,7 @@ export class TestContent {
build: {
name: vars.riskAssessmentName,
description: vars.description,
project: vars.projectName,
project: vars.folderName + '/' + vars.projectName,
version: '1.4.2',
status: 'Planned',
risk_matrix: vars.matrix.displayName
Expand All @@ -539,7 +539,7 @@ export class TestContent {
build: {
name: vars.riskScenarioName,
description: vars.description,
risk_assessment: `${vars.projectName}/${vars.riskAssessmentName}`,
risk_assessment: `${vars.folderName}/${vars.projectName}/${vars.riskAssessmentName}`,
threats: [
'Global/' + vars.threat.name,
'Global/' + vars.threat2.name
Expand Down

0 comments on commit 68bebb3

Please sign in to comment.