Skip to content

Commit

Permalink
QA v1.8.0-rc22 (#3008)
Browse files Browse the repository at this point in the history
  • Loading branch information
EZheln authored Jan 13, 2025
1 parent 215a2f3 commit 46b3c1e
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 99 deletions.
20 changes: 9 additions & 11 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,19 +481,15 @@ module.exports = {
},
Jobs_Monitoring: {
Tab_List: ['Jobs', 'Workflows', 'Scheduled']
// Job_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete'],
// Job_Overview_Action_Menu_Options: ['View YAML', 'Batch re-run', 'Delete'],
// Running_Job_Action_Menu_Options: ['Monitoring', 'Abort', 'View YAML'],
// Workflows_Action_Menu_Options: ['View YAML'],
// Workflows_Info_Pane_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete'],
// Pending_Job_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'Abort', 'View YAML'],
// Schedule_Action_Menu_Options: ['Run now', 'Edit', 'Delete', 'View YAML']
},
Jobs_And_Workflows: {
Tab_List: ['Monitor Jobs', 'Monitor Workflows', 'Schedule'],
Job_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete'],
Job_Overview_Action_Menu_Options: ['View YAML', 'Batch re-run', 'Delete'],
Job_Action_Menu_Options: ['Batch re-run', 'Run\'s resource monitoring', 'View YAML', 'Delete run'],
Job_List_Action_Menu_Options: ['Batch re-run', 'Run\'s resource monitoring', 'View YAML', 'Delete run', 'Delete all runs'],
Job_Overview_Action_Menu_Options: ['View YAML', 'Run\'s resource monitoring', 'Batch re-run', 'Delete run'],
Running_Job_Action_Menu_Options: ['Monitoring', 'Abort', 'View YAML'],
Delete_Run_Message: /Are you sure you want to delete the run with the UID "(.+?)" of the job "(.+?)"\? Deleted runs can not be restored./,
Delete_All_Runs_Message: /Are you sure you want to delete all runs of the job "(.+?)"\? Deleted runs can not be restored./,
Workflows_Action_Menu_Options: ['View YAML', 'Retry'],
Workflows_Info_Pane_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete'],
Pending_Job_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'Abort', 'View YAML'],
Expand Down Expand Up @@ -548,7 +544,7 @@ module.exports = {
Jobs_Status_Filter_Options: ['All', 'Aborted', 'Aborting', 'Completed', 'Error', 'Running', 'Pending'],
Workflows_Status_Filter_Options: ['All', 'Error', 'Failed', 'Running', 'Completed'],
Jobs_Type_Filter_Options: ['All', 'Local', 'Dask', 'Databricks', 'Handler', 'Job', 'Horovod', 'Spark'],
Scheduled_Type_Filter_Options: ['All', 'Job', 'Workflow', 'Nuclio', 'Application', 'Serving', 'Spark', 'Horovod', 'Dask', 'Databricks', 'Local', 'Handler'],
Scheduled_Type_Filter_Options: ['All', 'Job', 'Workflow', 'Spark', 'Horovod', 'Dask', 'Databricks'],
Group_By_Filter_Options: ['None', 'Name'],
Start_Time_Filter_Options: [
'Any time',
Expand Down Expand Up @@ -614,9 +610,11 @@ module.exports = {
No_Data_Message: {
Common_Message_Jobs_Monitoring: /No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Project: test"/,
Common_Message_Jobs_Monitoring_Status: /No data matches the filter: "Created at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Status: (.+?)"/,
Common_Message_Jobs_Monitoring_Workflows: /No data matches the filter: "Created at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Project: test"/,
Common_Message_Jobs_Monitoring_Type: /No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Type: (.+?)"/,
Common_Message_Monitor_Jobs: /No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}"/,
Common_Message_Jobs_Monitoring_Scheduled: /No data matches the filter: "Scheduled at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Project: test"/,
Common_Message_Monitor_Jobs: /No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}"/,
Common_Message_Monitor_Jobs_Name: /No data matches the filter: "Name: (.+?)"/,
Common_Message: 'No data matches the filter: "Version Tag: latest, Name: ccccc"',
Common_Message_Feature: 'No data matches the filter: "Version Tag: latest"',
Common_Message_Feature_Vector_Tab: 'No data matches the filter: "Tag: latest, Project: test-test"',
Expand Down
1 change: 1 addition & 0 deletions tests/features/common/page-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module.exports = {
New_Function: sidePanel['newFunction'],
New_JobTemplate_Edit: sidePanel['newJobTemplateEdit'],
Notification_Popup: interactivePopup['notificationPopUp'],
Pagination_Info_Pane: infoPane['paginationInfoPane'],
Preview_Info_Pane: infoPane['previewInfoPane'],
Preview_Popup: interactivePopup['previewPopup'],
Project: project['project'],
Expand Down
2 changes: 1 addition & 1 deletion tests/features/common/page-objects/feature-store.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const tabSelector = {
row: {
root: '.content-menu__item',
fields: {
key: 'a'
key: ''
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions tests/features/common/page-objects/info-pane.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,5 +843,13 @@ module.exports = {
Header: By.css('.graph-pane__title span'),
Cross_Close_Button: By.css('.graph-pane__title .round-icon-cp .round-icon-cp__circle'),
Overview_Headers: commonTable(modelsRealTimeinfoPaneOverviewHeaders)
},
paginationInfoPane: {
BE_Pagination_Navigate_Prev: By.css('[data-testid="pagination-navigate-double-prev-btn"] button'),
BE_Pagination_Navigate_Next: By.css('[data-testid="pagination-navigate-next-double-btn"] button'),
FE_Pagination_Navigate_Next: By.css('[data-testid="pagination-navigate-next-btn"] button'),
FE_Pagination_Navigate_Prev: By.css('[data-testid="pagination-navigate-prev-btn"] button'),
Pagination_Page_Number: By.css('.pagination-pages .pagination-page-number'),
Pagination_Count: By.css('.pagination .pagination-items-count')
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ module.exports = {
Batch_Run_Button: pageHeaderButton,
Error_Message: commonErrorMessage,
Custom_Range_Filter_Dropdown: commonCustomRangeFilter,
Arrow_Back: By.css('.link-back__icon'),
Arrow_Back: By.css('a.link-back__icon'),
Resource_Monitoring_Button: By.css(
'.content__action-bar-wrapper .action-bar button'
),
Expand Down
40 changes: 15 additions & 25 deletions tests/features/common/page-objects/jobs-monitoring.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const tabSelector = {
row: {
root: '.content-menu__item',
fields: {
key: 'a'
key: ''
}
}
}
Expand Down Expand Up @@ -82,11 +82,10 @@ const overallTable = {
)
},
name: '[data-testid="name"] a .link',
uid: '[data-testid="uid"] a .link',
project_name: '[data-testid="projectName"] .data-ellipsis',
datetime:
'.table-body__cell:nth-of-type(1) a .date-uid-row .link-subtext:nth-of-type(1)',
uid:
'.table-body__cell:nth-of-type(1) a .date-uid-row .link-subtext:nth-of-type(2)',
duration: '.table-body__cell:nth-of-type(3) .data-ellipsis',
owner: '.table-body__cell:nth-of-type(4) .data-ellipsis',
action_menu: {
Expand Down Expand Up @@ -136,6 +135,14 @@ const commonCustomRangeFilter = dropdownComponent(
)
)

const commonSearchByNameFilterInput = inputGroup(
generateInputGroup(
'[data-testid="name-form-field-input"]',
true,
false
)
)

// date picker start
const calendarTable = {
root: '',
Expand Down Expand Up @@ -222,28 +229,17 @@ module.exports = {
icon: ''
}
}),
Search_By_Name_Filter_Input: inputGroup(
generateInputGroup(
'[data-testid="name-form-field-input"]',
true,
false
)
),
Search_By_Name_Filter_Input: commonSearchByNameFilterInput,
Date_Picker_Filter_Dropdown: commonDatePickerFilter,
Custom_Range_Filter_Dropdown: commonCustomRangeFilter,
Date_Time_Picker: datepicker(dateTimePickerCalendars),
Jobs_Table: commonTable(overallTable)
Jobs_Table: commonTable(overallTable),
Arrow_Back: By.css('a.link-back__icon')
},
crossWorkflowsMonitorTab: {
Cross_Jobs_Tab_Selector: commonTable(tabSelector),
Table_FilterBy_Button: By.css('[data-testid="filter-menu-btn-tooltip-wrapper"]'),
Search_By_Name_Filter_Input: inputGroup(
generateInputGroup(
'[data-testid="name-form-field-input"]',
true,
false
)
),
Search_By_Name_Filter_Input: commonSearchByNameFilterInput,
Date_Picker_Filter_Dropdown: commonDatePickerFilter,
Custom_Range_Filter_Dropdown: commonCustomRangeFilter,
Date_Time_Picker: datepicker(dateTimePickerCalendars),
Expand All @@ -254,13 +250,7 @@ module.exports = {
crossScheduledMonitorTab: {
Cross_Jobs_Tab_Selector: commonTable(tabSelector),
Table_FilterBy_Button: By.css('[data-testid="filter-menu-btn-tooltip-wrapper"]'),
Search_By_Name_Filter_Input: inputGroup(
generateInputGroup(
'[data-testid="name-form-field-input"]',
true,
false
)
),
Search_By_Name_Filter_Input: commonSearchByNameFilterInput,
Date_Picker_Filter_Dropdown: commonDatePickerFilter,
Custom_Range_Filter_Dropdown: commonCustomRangeFilter,
Date_Time_Picker: datepicker(dateTimePickerCalendars),
Expand Down
Loading

0 comments on commit 46b3c1e

Please sign in to comment.