Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"babel-runtime": "^6.26.0",
"body-parser": "^1.19.0",
"chai": "^4.3.4",
"chromedriver": "^140.0.0",
"chromedriver": "^142.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.5.1",
"cucumber-html-reporter": "^5.3.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/features/MLFunction.feature
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ Feature: ML Functions
| Secret | | | | yes |
Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
Then verify "Volume_Paths_Table_Config_Map_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options"
Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hint "Input_Hint"."Mount_Path_Hint"
When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "New_Function" wizard
When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "New_Function" wizard using nontable inputs
Expand Down Expand Up @@ -537,7 +537,7 @@ Feature: ML Functions
| Function_Environment_Variables_Name_Input | Function_Environment_Variables_Type_Dropdown | Function_Environment_Variables_Secret_Name_Input | Function_Environment_Variables_Secret_Key_Input | Add_Row_Button |
| | Secret | | @#$ | yes |
Then verify "Function_Environment_Variables_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
Then verify "Function_Environment_Variables_Secret_Name_Input" in "Environment_Variables_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options"
Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."SECRET_INPUT_HINT"
Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Invalid"
Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."VALUE_INPUT_HINT"
Expand Down
8 changes: 8 additions & 0 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,14 @@ export default {
Distinct_Keys: 'The partition is based on key.',
Source_URL_Input:
'Source URL is the Git Repo that is associated with the project. When the user pulls the project it will use the source URL to pull from',
Secret_Name_Rule_Options:
'Valid characters: a–z, A–Z, 0–9, –, _, .\n' +
'Must begin and end with: a–z, A–Z, 0–9\n' +
'No consecutive characters: ..,, .–,, –.\n' +
'Max length between two periods: 63\n' +
'Length – max: 253\n'+
'This field is required\n'+
'Secret does not reference an MLRun secret defined in another project',
SECRET_INPUT_HINT:
'• Valid characters: A-Z, a-z, 0-9, -, _, .\n' +
'• Must begin and end with: A-Z, a-z, 0-9\n' +
Expand Down
31 changes: 21 additions & 10 deletions tests/features/common/page-objects/interactive-popup.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const actionMenuStructure = {
}

const volumePathsTable = {
root: '.modal__content .form-row:nth-of-type(7)',
root: '[data-testid="resources.volumesTable"]',
header: {
root: '.form-table__header-row',
sorters: {
Expand All @@ -306,15 +306,16 @@ const volumePathsTable = {
offset: 1,
add_row_btn: '.form-table__action-row button',
row: {
root: 'div[class=table__row]',
root: 'div.form-table__row.form-table__volume-row',
fields: {
type: '.table__cell:nth-of-type(1) .data-ellipsis',
volume_name: '.table__cell:nth-of-type(2) .data-ellipsis',
path: '.table__cell:nth-of-type(3) .data-ellipsis',
type: '.form-table__cell:nth-of-type(1) .data-ellipsis',
volume_name: '.form-table__cell:nth-of-type(2) .data-ellipsis',
path: '.form-table__cell:nth-of-type(3) .data-ellipsis',
action_menu: {
componentType: actionMenu,
structure: actionMenuStructure
}
},
remove_btn: '[data-testid="delete-btn"]'
}
}
}
Expand Down Expand Up @@ -474,10 +475,9 @@ const advancedEnvironmentVariablesTable = {
)
},
type_dropdown_verify: '.form-table__cell_1 .data-ellipsis',
value_input: '.form-table__cell_3 .form-field__control input',
value_input: '.form-table__cell_3 .form-field__control:nth-of-type(1) input',
value_verify: '.form-table__cell_3 .data-ellipsis',
value_input_key:
'.form-table__cell_3 .form-field-input:nth-of-type(2) .form-field__control input'
value_input_key: '.form-table__cell_3 .form-field-input:nth-of-type(2) input'
}
}
}
Expand Down Expand Up @@ -994,7 +994,7 @@ export default {
),
Volumes_Subheader: labelComponent(
generateLabelGroup(
'.modal__content .wizard-form__content-container .form-row:nth-child(6)',
'.modal__content .wizard-form__content-container .job-wizard__resources .form-row:nth-child(6)',
false,
true
)
Expand Down Expand Up @@ -1196,6 +1196,17 @@ export default {
false,
true
)
),
Env_Variables_Table_Secret_Name_Input: inputGroup(
generateInputGroup(
'[data-testid="advanced.environmentVariablesTable"] .form-table__cell:nth-of-type(3) .secret-name',
true,
true,
'.form-field__warning svg'
)
),
Delete_New_Row_Button: By.css(
'[data-testid="advanced.environmentVariablesTable"] .form-table__actions-cell .round-icon-cp:nth-of-type(2)'
)
},
Hyperparameter_Strategy_Accordion: {
Expand Down
4 changes: 3 additions & 1 deletion tests/features/common/page-objects/project.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ export default {
Realtime_Functions_Nuclio_Statistic_Section: {
ConsumerGroups_Stats_Counter: By.css('.d-flex:nth-of-type(2) .project-data-card__header .project-data-card__statistics-item:nth-of-type(4) .project-data-card__statistics-value'),
Recent_Text: By.css('.d-flex:nth-of-type(2) .project-data-card__recent-text span'),
All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link')
All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link'),
Running_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(1) span'),
Failed_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(2) span')
}
},
demoProject: {
Expand Down
Loading