@@ -5,11 +5,11 @@ import { projectSettingsAdministration } from '../../../pages/administration/pro
5
5
import { logIn } from '../../../pages/login.po' ;
6
6
import { predefinedResolutions } from '../../../pages/administration/predefinedResolutions.po' ;
7
7
import { Test } from '../../../../src/app/shared/models/test' ;
8
+ import { TestRun } from '../../../../src/app/shared/models/testRun' ;
9
+ import { TestResult } from '../../../../src/app/shared/models/test-result' ;
8
10
import using from 'jasmine-data-provider' ;
9
11
import usersTestData from '../../../data/users.json' ;
10
12
import cucumberImport from '../../../data/import/cucumber.json' ;
11
- import { TestRun } from '../../../../src/app/shared/models/testRun' ;
12
- import { TestResult } from '../../../../src/app/shared/models/test-result' ;
13
13
14
14
const editorExamples = {
15
15
admin : usersTestData . admin ,
@@ -112,13 +112,14 @@ describe('Administartion: Project Settings:', () => {
112
112
[ cucumberImport ] ,
113
113
[ 'cucumber6.json' ] ) ;
114
114
let result : TestResult = ( await projectHelper . editorAPI
115
- . getResults ( { test_run_id : imported [ 0 ] . id , project_id : projectHelper . project . id } ) ) [ 0 ] ;
115
+ . getResults ( { test_run_id : imported [ 0 ] . id , project_id : projectHelper . project . id } ) )
116
+ . find ( x => x . final_result_id === 5 ) ;
116
117
result . final_result_id = 1 ;
117
118
result . test_resolution_id = 4 ;
118
119
result = await projectHelper . editorAPI . createResult ( result ) ;
119
120
result = ( await projectHelper . editorAPI . getResults ( result ) ) [ 0 ] ;
120
121
expect ( result . test . resolution_colors ) . toBe ( `${ result . test_resolution . color } ,3,3,3,3` , 'resolution_colors is wrong!' ) ;
121
- expect ( result . test . result_colors ) . toBe ( `${ result . final_result . color } ,5,5,5,5 ` , 'result_colors is wrong!' ) ;
122
+ expect ( result . test . result_colors ) . toBe ( `${ result . final_result . color } ,4,4,4,4 ` , 'result_colors is wrong!' ) ;
122
123
expect ( result . test . result_ids . startsWith ( `${ result . id } ` ) ) . toBe ( true , 'result_ids is wrong!' ) ;
123
124
} ) ;
124
125
0 commit comments