diff --git a/package.json b/package.json index 2379ee692f..0a5e4b874a 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "babel-runtime": "^6.26.0", "body-parser": "^1.19.0", "chai": "^4.3.4", - "chromedriver": "^138.0.0", + "chromedriver": "^140.0.0", "cross-env": "^7.0.3", "css-loader": "^6.5.1", "cucumber-html-reporter": "^5.3.0", diff --git a/tests/features/common-tools/common-consts.js b/tests/features/common-tools/common-consts.js index 8b5d2fc62a..d0b1c0809a 100644 --- a/tests/features/common-tools/common-consts.js +++ b/tests/features/common-tools/common-consts.js @@ -34,9 +34,10 @@ export default { 'Train model', 'Batch inference', 'Create real-time function', + 'Register model', 'ML function', 'Feature set', - 'Register model' + 'Create feature vector' ], Online_Status: 'online', Data_Collection_Description: @@ -535,6 +536,7 @@ export default { ' You can browse them in the Artifacts page.', Model_Endpoint_With_Detections: 'This chart displays the number of model endpoints that had at least one detected issue, in any monitoring application, in the relevant time period', + Project_Monitoring_Counters: 'Counters use a caching mechanism, and are not auto-refreshed.', Operating_Functions: 'System functions that are used for the monitoring application operation', Lag: 'Number of messages currently waiting in the app\'s queue', Commited_Offset: 'Total number of messages handled by the app', @@ -576,11 +578,13 @@ export default { Terminate_Workflow_Message: /Are you sure you want to terminate the workflow "(.+?)" \(stop its execution\)\? Workflows termination cannot be undone\./, Workflows_Action_Menu_Options: ['View YAML', 'Retry', 'Terminate'], Workflows_Running_Action_Menu_Options: ['View YAML', 'Terminate'], - Workflows_Info_Pane_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete', 'Terminate'], + Workflows_Info_Pane_Action_Menu_Options: ['Batch re-run', 'Monitoring', 'View YAML', 'Delete'], Pending_Job_Action_Menu_Options: ['Batch re-run', 'Run\'s resource monitoring', 'Abort', 'View YAML'], Schedule_Action_Menu_Options: ['Run now', 'Edit', 'Delete', 'View YAML'], Workflows_Unsuccessful_Run_Message: 'Workflow did not run successfully\nRETRY', - Workflows_Unsuccessful_Terminate_Message: 'Workflow "stocks-admin-main 2021-08-30 05-36-35 failed to terminate' + Workflows_Successful_Run_Message: 'Workflow run successfully.', + Workflows_Unsuccessful_Terminate_Message: 'Workflow "stocks-admin-main 2021-08-30 05-36-35 failed to terminate', + Workflows_Trigger_Termination_Message: 'A request to terminate workflow "stocks-admin-main 2021-08-30 05-36-35" was issued' }, Jobs_Monitor_Tab_Info_Pane: { Pending_State: 'Pending', @@ -602,8 +606,8 @@ export default { 'Log level:', 'Output path:', 'Total iterations:', - 'Retry count:', - 'Maximum retries:' + 'Attempt count:', + 'Maximum attempts:' ] }, Jobs_Monitor_Tab: { @@ -699,7 +703,8 @@ export default { 'Past hour', 'Past 24 hours', 'Past week', - 'Past month' + 'Past month', + 'Custom range' ], Scheduled_Date_Picker_Filter_Options: [ 'Any time', @@ -760,7 +765,7 @@ export default { 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: (.+?)"/, Common_Message_Scheduled_Type: - /No data matches the filter: "Type: (.+?)"/, + /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}, Type: (.+?)"/, 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: diff --git a/tests/features/common/page-objects/info-pane.po.js b/tests/features/common/page-objects/info-pane.po.js index abf58665ea..cc02bfc567 100644 --- a/tests/features/common/page-objects/info-pane.po.js +++ b/tests/features/common/page-objects/info-pane.po.js @@ -982,7 +982,7 @@ export default { Alerts_FilterBy_Button: By.css('[data-testid="detailsPanel"] [data-testid="filter-menu-btn-tooltip-wrapper"]'), Alerts_Refresh_Button: By.css('[data-testid="detailsPanel"] [data-testid="refresh-tooltip-wrapper"]'), Alerts_Table: commonTable(alertsTable), - Metrics_Stats_Card: By.css('.alert-row__expanded-row .alerts-table__metrics .stats-card') + Metrics_Stats_Card: By.css('.alert-row__expanded-row .alerts-table .stats-card') }, modelsRealTimePipelineInfoPane: { Arrow_Back: commonArrowBack, diff --git a/tests/features/common/page-objects/monitoring-app.po.js b/tests/features/common/page-objects/monitoring-app.po.js index 94b3eb5e84..664711d890 100644 --- a/tests/features/common/page-objects/monitoring-app.po.js +++ b/tests/features/common/page-objects/monitoring-app.po.js @@ -284,22 +284,22 @@ export default { Date_Picker_Filter_Dropdown: commonDatePickerFilter, Custom_Range_Filter_Dropdown: commonCustomRangeFilter, Date_Time_Picker: datepicker(dateTimePickerCalendars), - Applications_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) .stats-card__row:nth-of-type(1) .stats-card__title span'), + Applications_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) .stats-card__row:nth-of-type(1) .stats-card__title .data-ellipsis.tooltip-wrapper'), Applications_Stats_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) .stats-card__row:nth-of-type(2) .stats__counter'), - Apps_Status_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(1) .stats-card__title span'), + Apps_Status_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(1) .stats-card__title .data-ellipsis.tooltip-wrapper'), Apps_Status_Running_SubTitle: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="running_status"] .stats__subtitle'), Apps_Status_Failed_SubTitle: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="failed_status"] .stats__subtitle'), Apps_Status_Running_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-running"] .stats__counter'), Apps_Status_Failed_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-failed"] .stats__counter'), Apps_Status_Running_Tip: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="running_status"] i'), Apps_Status_Failed_Tip: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__row:nth-of-type(2) [data-testid="failed_status"] i'), - Endpoints_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(1) .stats-card__title span'), + Endpoints_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(1) .stats-card__title .data-ellipsis.tooltip-wrapper'), Endpoints_Batch_SubTitle: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(2) [data-testid="batch_status"] .stats__subtitle'), Endpoints_RealTime_SubTitle: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(2) [data-testid="realTime_status"] .stats__subtitle'), Endpoints_Batch_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-batch"] .stats__counter'), Endpoints_RealTime_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-realTime"] .stats__counter'), - RunningFrequency_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__row:nth-of-type(1) .stats-card__title span'), - RunningFrequency_Value_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-undefined"] .stats__counter'), + RunningFrequency_Stats_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__row:nth-of-type(1) .stats-card__title .data-ellipsis.tooltip-wrapper'), + RunningFrequency_Value_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__row:nth-of-type(2) [data-testid="monitoring-app-interval"] .stats__counter'), Model_Endpoint_Detections_Title: By.css('.monitoring-apps .monitoring-app__section:nth-of-type(1) .monitoring-app__section-item:nth-of-type(1) .section-item_title span'), Model_Endpoint_Detections_Tip: By.css('.monitoring-apps .monitoring-app__section:nth-of-type(1) .monitoring-app__section-item:nth-of-type(1) .section-item_title [data-testid="tip"]'), Model_Endpoint_Detections_Chart: By.css('.monitoring-apps .monitoring-app__section:nth-of-type(1) .monitoring-app__section-item:nth-of-type(1) .section-item_chart-wrapper .chart-container'), @@ -321,19 +321,19 @@ export default { Date_Time_Picker: datepicker(dateTimePickerCalendars), Application_Metrics_Button: By.css('.action-bar [data-testid="btn"] span'), Refresh_Button: By.css('.action-bar [data-testid="refresh"] button'), - App_Status_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) .stats-card__title span'), + App_Status_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) .stats-card__title .data-ellipsis.tooltip-wrapper'), App_Status_SubTitle: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(1) [data-testid="monitoring-app-appStatus"] .stats__counter'), - Endpoints_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__title span'), + Endpoints_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) .stats-card__title .data-ellipsis.tooltip-wrapper'), Endpoints_Tip: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) [data-testid="tip"] svg'), Endpoints_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(2) [data-testid="monitoring-app-endpoints"] .stats__counter'), - Detections_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__title span'), + Detections_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) .stats-card__title .data-ellipsis.tooltip-wrapper'), Detections_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(3) [data-testid="monitoring-app-detections"] .stats__counter'), - Possible_Detections_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__title span'), + Possible_Detections_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) .stats-card__title .data-ellipsis.tooltip-wrapper'), Possible_Detections_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(4) [data-testid="monitoring-app-possibleDetections"] .stats__counter'), - Lag_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(5) .stats-card__title span'), + Lag_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(5) .stats-card__title .data-ellipsis.tooltip-wrapper'), Lag_Tip: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(5) [data-testid="tip"] svg'), Lag_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(5) [data-testid="monitoring-app-lag"] .stats__counter'), - Commited_Offset_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(6) .stats-card__title span'), + Commited_Offset_Title: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(6) .stats-card__title .data-ellipsis.tooltip-wrapper'), Commited_Offset_Tip: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(6) [data-testid="tip"] svg'), Commited_Offset_Counter: By.css('.monitoring-application__statistics-section .stats-card:nth-of-type(6) [data-testid="monitoring-app-commitedOffset"] .stats__counter'), Artifacts_Title: By.css('.monitoring-app__section .section-item_title span'), diff --git a/tests/features/common/page-objects/project.po.js b/tests/features/common/page-objects/project.po.js index 4235e6a469..a5569fff89 100644 --- a/tests/features/common/page-objects/project.po.js +++ b/tests/features/common/page-objects/project.po.js @@ -33,7 +33,7 @@ const quickActionsObject = dropdownComponent( generateDropdownGroup( '.main-info__toolbar .create-new-menu', '.select__header', - '[data-testid="select-body"] [data-testid="select-option"] .tooltip-wrapper', + '[data-testid="select-body"] [data-testid="select-option"]:not(.hidden) .tooltip-wrapper', false ) ) @@ -83,7 +83,7 @@ const runsTable = { header: { root: '.project-data-card__header', sorters: { - title: '.project-data-card__header-text span a', + title: '.project-data-card__header-text a', time_period: '.project-data-card__header-info span', in_process_counter_number: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-value', in_process_counter_subtitle: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-label span', @@ -276,18 +276,18 @@ const shardLagsTable = { export default { project: { - Project_Name: By.css('.main-info .project-details__header'), + Project_Name: By.css('.main-info .page-header__title'), Created_Details: By.css('.project-details__details-label:nth-of-type(1)'), Owner_Details: By.css('.project-details__details-label:nth-of-type(2)'), - Info_Baner: By.css('.main-info__toolbar .main-info__toolbar-banner'), + Info_Baner_Icon: By.css('.main-info .page-header__title [data-testid="tip"] svg'), Quick_Actions: quickActionsObject, Refresh_Button: By.css('[data-testid="refresh"]'), Mono_Values_Cards: By.css('.projects-monitoring-container .projects-monitoring-stats'), Artifacts_Stats_Container: { Artifacts_Stats_Title: By.css('.projects-monitoring-stats > div:nth-child(1) .stats-card__title .tooltip-wrapper'), - Artifacts_Stats_Counter: By.css('.projects-monitoring-stats > div:nth-child(1) [data-testid="data_total_counter"] .stats__counter'), + Artifacts_Stats_Counter: By.css('.projects-monitoring-stats > div:nth-child(1) [data-testid="artifacts_total_counter"] .stats__counter'), Datasets_Counter_Subtitle: By.css('.projects-monitoring-stats > div:nth-child(1) .stats-card__row:nth-of-type(1) h6'), - Datasets_Counter_Number: By.css('.projects-monitoring-stats > div:nth-child(1) .stats-card__row:nth-of-type(1) .stats__counter'), + Datasets_Counter_Number: By.css('.projects-monitoring-container > div > div:nth-child(1) .stats__details .stats-card__row:nth-of-type(1) .stats__counter'), Documents_Counter_Subtitle: By.css('.projects-monitoring-stats > div:nth-child(1) .stats-card__row:nth-of-type(2) h6'), Documents_Counter_Number: By.css('.projects-monitoring-stats > div:nth-child(1) .stats__details .stats-card__row:nth-of-type(2) .stats__counter'), LLM_Prompts_Counter_Subtitle: By.css('.projects-monitoring-stats > div:nth-child(1) .stats-card__row:nth-of-type(3) h6'), @@ -298,7 +298,7 @@ export default { Workflows_Stats_Container: { Workflows_Stats_Title: By.css('.projects-monitoring-stats > div:nth-child(2) .stats-card__title .tooltip-wrapper'), Filtering_Time_Period: By.css('.projects-monitoring-stats > div:nth-child(2) .project-card__info span'), - Workflows_Stats_Counter: By.css('.projects-monitoring-stats > div:nth-child(2) [data-testid="scheduled_total_counter"] .stats__counter'), + Workflows_Stats_Counter: By.css('.projects-monitoring-stats > div:nth-child(2) [data-testid="wf_total_counter"] .stats__counter'), In_Process_Counter_Subtitle: By.css('.projects-monitoring-stats > div:nth-child(2) .stats-card__row:nth-of-type(1) h6'), In_Process_Counter_Status_Icon: By.css('.projects-monitoring-stats > div:nth-child(2) .stats-card__row:nth-of-type(1) i.state-running'), In_Process_Counter_Number: By.css('.projects-monitoring-stats > div:nth-child(2) .stats__details .stats-card__row:nth-of-type(1) div:nth-child(2)'), @@ -324,12 +324,12 @@ export default { }, Monitoring_App_Stats_Container: { Monitoring_App_Stats_Title: By.css('.projects-monitoring-stats .application-card .stats-card__title .tooltip-wrapper'), - Monitoring_App_Succeeded_Stats_Counter: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(1) .stats__counter'), - Monitoring_App_Succeeded_Counter_Subtitle: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(1) .stats__label'), - Monitoring_App_Succeeded_Counter_Status_Icon: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(1) .stats__label .state-completed'), - Monitoring_App_Failed_Stats_Counter: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(2) .stats__counter'), - Monitoring_App_Failed_Counter_Subtitle: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(2) .stats__label'), - Monitoring_App_Failed_Counter_Status_Icon: By.css('.projects-monitoring-stats .application-card .stats__container:nth-of-type(2) .stats__label .state-failed') + Monitoring_App_Running_Stats_Counter: By.css('.projects-monitoring-stats .application-card [data-testid="app_running_counter"] .stats__counter'), + Monitoring_App_Running_Counter_Subtitle: By.css('.application-card > div > div:nth-child(2) .stats__details .stats-card__col:nth-of-type(1) .stats__subtitle'), + Monitoring_App_Running_Counter_Status_Icon: By.css('.application-card > div > div:nth-child(2) .stats__details .stats-card__col:nth-of-type(1) .state-running'), + Monitoring_App_Failed_Stats_Counter: By.css('.projects-monitoring-stats .application-card [data-testid="app_failed_counter"] .stats__counter'), + Monitoring_App_Failed_Counter_Subtitle: By.css('.application-card > div > div:nth-child(2) .stats__details .stats-card__col:nth-of-type(2) .stats__subtitle'), + Monitoring_App_Failed_Counter_Status_Icon: By.css('.application-card > div > div:nth-child(2) .stats__details .stats-card__col:nth-of-type(2) .state-failed') }, Alerts_Stats_Container: { Alerts_Stats_Title: By.css('.projects-monitoring-stats > div:nth-child(5) .stats-card__title .tooltip-wrapper'), @@ -345,7 +345,7 @@ export default { }, Runs_Statistic_Table: commonTable(runsTable), Runs_Statistic_Section_Container: { - Runs_Statistic_Section_Title_Tip: By.css('.d-flex:nth-of-type(1) [data-testid="tip"]'), + Runs_Statistic_Section_Title_Tip: By.css('.d-flex:nth-of-type(1) [data-testid="tip"] svg'), In_Process_Counter_Subtitle: By.css('.d-flex:nth-of-type(1) .project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-label span'), Failed_Counter_Subtitle: By.css('.d-flex:nth-of-type(1) .project-data-card__statistics-item:nth-of-type(2) .project-data-card__statistics-label span'), Succeeded_Counter_Subtitle: By.css('.d-flex:nth-of-type(1) .project-data-card__statistics-item:nth-of-type(3) .project-data-card__statistics-label span'), diff --git a/tests/features/common/page-objects/projects.po.js b/tests/features/common/page-objects/projects.po.js index 113267f1d6..6b0d2832c4 100644 --- a/tests/features/common/page-objects/projects.po.js +++ b/tests/features/common/page-objects/projects.po.js @@ -204,59 +204,56 @@ export default { }, Monitoring_Workflows_Box: { Monitoring_Workflows_Box_Title: By.css( - '.projects-monitoring-stats .stats-card:nth-of-type(2) .stats-card__title' + '.projects-monitoring-stats .stats-card:nth-of-type(3) .stats-card__title' ), - Filtering_Time_Period: By.css('.stats-card:nth-of-type(2) .stats-card__col > div > span'), + Filtering_Time_Period: By.css('.stats-card:nth-of-type(3) .stats-card__row > div > span'), Total_Counter_Number: By.css( - '.projects-monitoring-stats > div:nth-child(3) [data-testid="scheduled_total_counter"]' + '.projects-monitoring-stats > div:nth-child(3) [data-testid="wf_total_counter"] .stats__counter' ), - Counter_Running_Status_Number: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_running_counter"] .stats__counter' + Counter_In_Process_Status_Number: By.css( + '.stats-card:nth-of-type(3) [data-testid="wf_running_counter"] .stats__counter' ), - Counter_Running_Status_Subtitle: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_running_counter"] .stats__subtitle' + Counter_In_Process_Status_Subtitle: By.css( + '.stats-card:nth-of-type(3) [data-testid="wf_running_counter"] .stats__subtitle' ), - Counter_Running_Status_Icon: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_running_counter"] .state-running' + Counter_In_Process_Status_Icon: By.css( + '.stats-card:nth-of-type(3) [data-testid="wf_running_counter"] .state-running' ), Counter_Failed_Status_Number: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_failed_counter"] .stats__counter' + '.stats-card:nth-of-type(3) [data-testid="wf_failed_counter"] .stats__counter' ), Counter_Failed_Status_Subtitle: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_failed_counter"] .stats__subtitle' + '.stats-card:nth-of-type(3) [data-testid="wf_failed_counter"] .stats__subtitle' ), Counter_Failed_Status_Icon: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_failed_counter"] .state-failed' + '.stats-card:nth-of-type(3) [data-testid="wf_failed_counter"] .state-failed' ), Counter_Completed_Status_Number: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_completed_counter"] .stats__counter' + '.stats-card:nth-of-type(3) [data-testid="wf_completed_counter"] .stats__counter' ), Counter_Completed_Status_Subtitle: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_completed_counter"] .stats__subtitle' + '.stats-card:nth-of-type(3) [data-testid="wf_completed_counter"] .stats__subtitle' ), Counter_Completed_Status_Icon: By.css( - '.stats-card:nth-of-type(2) [data-testid="wf_completed_counter"] .state-completed' + '.stats-card:nth-of-type(3) [data-testid="wf_completed_counter"] .state-completed' ) }, Monitoring_Scheduled_Box: { Monitoring_Scheduled_Box_Title: By.css( - '.projects-monitoring-stats .stats-card:nth-of-type(3) .stats-card__title' + '.projects-monitoring-stats .stats-card:nth-of-type(4) .stats-card__title' ), - Filtering_Time_Period: By.css('.stats-card:nth-of-type(3) .stats-card__col > div > span'), + Filtering_Time_Period: By.css('.stats-card:nth-of-type(4) .stats-card__row > div > span'), Total_Job_Counter_Title: By.css( - '.stats-card:nth-of-type(3) [data-testid="scheduled_jobs_counter"] .stats__subtitle' + '.stats-card:nth-of-type(4) [data-testid="scheduled_jobs_counter"] .stats__subtitle' ), Total_Workflows_Counter_Title: By.css( - '.stats-card:nth-of-type(3) [data-testid="scheduled_wf_counter"] .stats__subtitle' - ), - Total_Scheduled_Title: By.css( - '.stats-card:nth-of-type(3) .stats-card__col > div > div > span' + '.stats-card:nth-of-type(4) [data-testid="scheduled_workflows_counter"] .stats__subtitle' ), Total_Job_Counter_Number: By.css( - '.stats-card:nth-of-type(3) [data-testid="scheduled_jobs_counter"] .stats__counter' + '.stats-card:nth-of-type(4) [data-testid="scheduled_jobs_counter"] .stats__counter' ), Total_Workflows_Counter_Number: By.css( - '.stats-card:nth-of-type(3) [data-testid="scheduled_wf_counter"] .stats__counter' + '.stats-card:nth-of-type(4) [data-testid="scheduled_workflows_counter"] .stats__counter' ), Total_Scheduled_Number: By.css( '.projects-monitoring-stats > div:nth-child(4) [data-testid="scheduled_total_counter"]' @@ -267,30 +264,27 @@ export default { '.projects-monitoring-stats .alerts-card .stats-card__title .data-ellipsis' ), Monitoring_Alerts_Box_Title_Icon: By.css( - '.projects-monitoring-stats .stats-card:nth-of-type(4) .stats-card__title svg' + '.projects-monitoring-stats .alerts-card .stats-card__title svg' ), - Filtering_Time_Period: By.css('.stats-card:nth-of-type(4) .stats-card__col > div > span'), + Filtering_Time_Period: By.css('.alerts-card .stats-card__row > div > span'), Total_Endpoint_Counter_Number: By.css( - '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_endpoints_counter"]' + '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_endpoints_counter"] .stats__counter' ), Total_Endpoint_Counter_Title: By.css( '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_endpoints_counter"] h6' ), Total_Jobs_Counter_Number: By.css( - '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_job_counter"]' + '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_job_counter"] .stats__counter' ), Total_Jobs_Counter_Title: By.css( '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_job_counter"] h6' ), Total_Application_Counter_Number: By.css( - '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_application_counter"]' + '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_application_counter"] .stats__counter' ), Total_Application_Counter_Title: By.css( '.projects-monitoring-stats .alerts-card .stats__details [data-testid="alerts_application_counter"] .stats__subtitle' ), - Total_Alerts_Title: By.css( - '.stats-card:nth-of-type(4) .stats-card__col > div > div > span' - ), Total_Alerts_Number: By.css( '.projects-monitoring-stats .alerts-card [data-testid="alerts_total_counter"]' ) diff --git a/tests/features/featureStore.feature b/tests/features/featureStore.feature index e1f6e9927d..29eabdbbd8 100644 --- a/tests/features/featureStore.feature +++ b/tests/features/featureStore.feature @@ -575,6 +575,7 @@ Feature: Feature Store Page And wait load page And select "Feature Vectors" tab in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard Then click on "Table_FilterBy_Button" element on "Feature_Store_Features_Vectors_Tab" wizard + And wait load page When select "test-tag" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard Then click on "Apply_Button" element on "FilterBy_Popup" wizard And wait load page diff --git a/tests/features/jobsAndWorkflows.feature b/tests/features/jobsAndWorkflows.feature index 0b546c0cbd..08cdfb15ab 100644 --- a/tests/features/jobsAndWorkflows.feature +++ b/tests/features/jobsAndWorkflows.feature @@ -228,6 +228,7 @@ Feature: Jobs and workflows And wait load page When pick up "Custom range" from "03/31/2014 10:30" to "03/21/2015 19:15" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard And wait load page + And wait load page Then verify from "03/31/2014 10:30" to "03/21/2015 19:15" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard When pick up "Custom range" from "03/31/2044 10:30" to "03/21/2015 19:15" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard And wait load page @@ -236,8 +237,8 @@ Feature: Jobs and workflows When pick up "Custom range" from "03/31/2030 10:30" to "03/31/2030 10:31" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard And wait load page Then verify from "03/31/2030 10:30" to "03/31/2030 10:31" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard - When pick up "Custom range" from "03/31/2025 10:31" to "03/21/2025 10:30" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard And wait load page + When pick up "Custom range" from "03/31/2025 10:31" to "03/21/2025 10:30" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard And wait load page Then verify error message in "Date_Time_Picker" on "Jobs_Monitor_Tab" wizard with value "Date_Time_Picker"."Error_Message" @@ -448,6 +449,7 @@ Feature: Jobs and workflows And wait load page Then verify from "11/07/2021 17:00" to "11/08/2021 17:00" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard And wait load page + And wait load page Then value in "datetime" column in "Jobs_Monitor_Table" on "Jobs_Monitor_Tab" wizard should be from "11/07/2021 18:00" to "11/08/2021 18:00" @MLJW @@ -1016,10 +1018,10 @@ Feature: Jobs and workflows And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard - Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is enabled + Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is disabled Then verify "Workflow_List_View_Table" element visibility on "Workflows_Monitor_Tab" wizard Then verify "Terminate_Button" element visibility on "Workflows_Monitor_Tab" wizard Then "Terminate_Button" element on "Workflows_Monitor_Tab" should contains "Terminate" value @@ -1052,7 +1054,7 @@ Feature: Jobs and workflows And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard @@ -1369,9 +1371,10 @@ Feature: Jobs and workflows Then verify "Delete_Button" element visibility on "Confirm_Popup" wizard When click on "Delete_Button" element on "Confirm_Popup" wizard And wait load page + And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard @@ -1477,6 +1480,7 @@ Feature: Jobs and workflows # Then verify arrow lines position on "Workflow_Graph" on "Workflows_Monitor_Tab" wizard When click on node with index 2 in "Workflow_Graph" graph on "Workflows_Monitor_Tab" wizard And wait load page + And wait load page Then verify "Header" element visibility on "Jobs_Monitor_Tab_Info_Pane" wizard Then verify "Updated" element visibility on "Jobs_Monitor_Tab_Info_Pane" wizard Then verify "Cross_Close_Button" element visibility on "Jobs_Monitor_Tab_Info_Pane" wizard @@ -1515,7 +1519,7 @@ Feature: Jobs and workflows Then "Notification_Pop_Up" element on "Notification_Popup" should contains "The batch run was started" value Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard - When click on cell with value "test-m_ingest" in "name" column in "Jobs_And_Workflows" table on "Project" wizard + When click on cell with value "test-m_ingest" in "name" column in "Runs_Statistic_Table" table on "Project" wizard And wait load page Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Jobs_Monitor_Tab_Info_Pane" wizard When click on "link" value where option is "Function:" in "Overview_Headers" on "Jobs_Monitor_Tab_Info_Pane" wizard @@ -1587,7 +1591,7 @@ Feature: Jobs and workflows And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard Then click on "Project_Monitoring_Button" element on "commonPagesHeader" wizard And hover "MLRun_Logo" component on "commonPagesHeader" wizard - When click on cell with value "test-m_ingest" in "name" column in "Jobs_And_Workflows" table on "Project" wizard + When click on cell with value "test-m_ingest" in "name" column in "Runs_Statistic_Table" table on "Project" wizard And wait load page When click on "link" value where option is "Function:" in "Overview_Headers" on "Jobs_Monitor_Tab_Info_Pane" wizard And wait load page @@ -2926,11 +2930,11 @@ Feature: Jobs and workflows And wait load page Then value in "status" column with "tooltip" in "Jobs_Monitor_Table" on "Jobs_Monitor_Tab" wizard should contains "Aborting" Then wait for 10 seconds + Then click on "Table_Refresh_Button" element on "Jobs_Monitor_Tab" wizard Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard And wait load page Then "Notification_Pop_Up" element on "Notification_Popup" should contains "Job erann-test (...e19ea57) was aborted" value And wait load page - And wait load page Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard Then verify "Table_Refresh_Button" element visibility on "Jobs_Monitor_Tab" wizard @@ -2941,8 +2945,7 @@ Feature: Jobs and workflows @MLJW @passive @smoke - # retry action is using KFP API and so this can’t be implemented in the mock - https://iguazio.atlassian.net/browse/ML-9124 - #TODO: need to add check Retry option for error and running status + #TODO: need to add check Retry option for error and running status, add check for retryed job visibility Scenario: MLJW087 - Check Retry option in action menu on Workflows Monitor tab Given open url And wait load page @@ -2960,9 +2963,7 @@ Feature: Jobs and workflows And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Run_Message" - Then verify "Retry_Button" element visibility on "Notification_Popup" wizard - Then "Retry_Button" element on "Notification_Popup" should contains "RETRY" value + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Successful_Run_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard diff --git a/tests/features/jobsMonitoring.feature b/tests/features/jobsMonitoring.feature index 29df3fb998..ead871e264 100644 --- a/tests/features/jobsMonitoring.feature +++ b/tests/features/jobsMonitoring.feature @@ -10,7 +10,7 @@ Feature: Jobs Monitoring Page Then verify "Monitoring_Container" element visibility in "Projects_Monitoring_Container" on "Projects" wizard When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -108,7 +108,7 @@ Feature: Jobs Monitoring Page Then "Status_Jobs_Completed_Checkbox" element should be checked on "FilterBy_Popup" wizard Then verify "Jobs_Table" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard And select "crossTab" with "Jobs monitoring" value in breadcrumbs menu - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=completed&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=completed&dates=past24hours&bePage=1&fePage=1" Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard @@ -128,7 +128,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Jobs_Tab" wizard And wait load page @@ -139,7 +139,9 @@ Feature: Jobs Monitoring Page And wait load page Then value in "name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "test" And select "Scheduled" tab in "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Scheduled_Tab" wizard + And wait load page And select "Jobs" tab in "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -189,7 +191,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard @@ -252,7 +254,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -297,6 +299,13 @@ Feature: Jobs Monitoring Page And wait load page Then verify "Jobs_Table" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "6 items selected" + When select "Pending retry" option in "Status_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Title" element on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then verify "Jobs_Table" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then select "View YAML" option in action menu on "Jobs_Monitoring_Jobs_Tab" wizard in "Jobs_Table" table at row with "test" value in "name" column @@ -311,7 +320,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -376,7 +385,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -512,6 +521,26 @@ Feature: Jobs Monitoring Page And wait load page Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + Then select "Delete all runs" option in action menu on "Jobs_Monitoring_Jobs_Tab" wizard in "Jobs_Table" table at row with "fesf" value in "name" column + And wait load page + Then verify if "Confirm_Popup" popup dialog appears + Then "Confirm_Dialog_Message" component on "Confirm_Popup" should be equal "Jobs_And_Workflows"."Delete_All_Runs_Message" + Then "Title" element on "Confirm_Popup" should contains "Delete job?" value + Then verify "Cross_Cancel_Button" element visibility on "Confirm_Popup" wizard + Then verify "Cancel_Button" element visibility on "Confirm_Popup" wizard + Then "Cancel_Button" element on "Confirm_Popup" should contains "Cancel" value + Then verify "Cancel_Button" element on "Confirm_Popup" wizard is enabled + Then verify "Delete_Button" element visibility on "Confirm_Popup" wizard + Then "Delete_Button" element on "Confirm_Popup" should contains "Delete" value + When click on "Delete_Button" element on "Confirm_Popup" wizard + And wait load page + And wait load page + Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard + And wait load page + Then "Notification_Pop_Up" element on "Notification_Popup" should contains "Job is successfully deleted" value + And wait load page + Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard + Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard Then "No_Data_Message" component on "commonPagesHeader" should be equal "No_Data_Message"."Common_Message_Monitor_Jobs_Name" @@ -525,7 +554,7 @@ Feature: Jobs Monitoring Page Then verify "Total_Counter_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Workflows_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -557,13 +586,13 @@ Feature: Jobs Monitoring Page Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled Then navigate back And wait load page - Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - When click on "Counter_Running_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + When click on "Counter_In_Process_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page Then verify "Workflows" tab is active in "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Workflows_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Workflows_Tab" wizard selected option value "Any time" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard - Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Running" + Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Running, Terminating" Then click on "Status_Filter_Element" element on "FilterBy_Popup" wizard Then "Status_All_Checkbox" element should be unchecked on "FilterBy_Popup" wizard Then "Status_Workflows_Running_Checkbox" element should be checked on "FilterBy_Popup" wizard @@ -626,7 +655,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page @@ -688,12 +717,12 @@ Feature: Jobs Monitoring Page @MLJM @smoke - Scenario: MLJM015 - Check the Terminate functionality on Workflows tab of Jobs monitoring page with running status + Scenario: MLJM015 - Check the Terminate functionality on Workflows tab of Jobs monitoring page with running status on main table list Given open url And wait load page When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page @@ -729,13 +758,45 @@ Feature: Jobs Monitoring Page And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard When click on cell with row index 1 in "name" column in "Workflows_Table" table on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page Then verify "Terminate_Button" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard Then "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" should contains "Terminate" value + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is disabled + Then click on "Arrow_Back" element on "Workflows_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify that in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "main 2021-08-30 05-36-35" value in "name" column "Terminate" option is disabled + And wait load page + + @MLJM + @smoke + # !!! restart mock is required + Scenario: MLJM018 - Check the Terminate functionality on Workflows tab of Jobs monitoring page with running status on workflow runs graph view + Given open url + And wait load page + When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" + Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Workflows_Tab" wizard selected option value "Any time" + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + When select "stocks-admin" option in "Project_Name_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then verify options in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "Running" value in "status" column should contains "Jobs_And_Workflows"."Workflows_Running_Action_Menu_Options" + Then check that "Terminate" option in action menu on "Jobs_Monitoring_Workflows_Tab" wizard is enabled + And wait load page + When click on cell with row index 1 in "name" column in "Workflows_Table" table on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Terminate_Button" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + Then "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" should contains "Terminate" value Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is enabled Then click on "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard Then verify if "Confirm_Popup" popup dialog appears @@ -752,9 +813,42 @@ Feature: Jobs Monitoring Page And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is disabled + Then click on "Arrow_Back" element on "Workflows_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify that in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "main 2021-08-30 05-36-35" value in "name" column "Terminate" option is disabled + And wait load page + + @MLJM + @smoke + # !!! restart mock is required + Scenario: MLJM019 - Check the Terminate functionality on Workflows tab of Jobs monitoring page with running status on workflow runs list view + Given open url + And wait load page + When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" + Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Workflows_Tab" wizard selected option value "Any time" + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + When select "stocks-admin" option in "Project_Name_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then verify options in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "Running" value in "status" column should contains "Jobs_And_Workflows"."Workflows_Running_Action_Menu_Options" + Then check that "Terminate" option in action menu on "Jobs_Monitoring_Workflows_Tab" wizard is enabled + And wait load page + When click on cell with row index 1 in "name" column in "Workflows_Table" table on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Terminate_Button" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + Then "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" should contains "Terminate" value + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is enabled Then verify "Toggle_View_Button" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard Then click on "Toggle_View_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page @@ -777,9 +871,42 @@ Feature: Jobs Monitoring Page And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is disabled + Then click on "Arrow_Back" element on "Workflows_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify that in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "main 2021-08-30 05-36-35" value in "name" column "Terminate" option is disabled + And wait load page + + @MLJM + @smoke + # !!! restart mock is required + Scenario: MLJM020 - Check the Terminate functionality on Workflows tab of Jobs monitoring page with running status with run detail pane + Given open url + And wait load page + When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" + Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Workflows_Tab" wizard selected option value "Any time" + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + When select "stocks-admin" option in "Project_Name_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then verify options in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "Running" value in "status" column should contains "Jobs_And_Workflows"."Workflows_Running_Action_Menu_Options" + Then check that "Terminate" option in action menu on "Jobs_Monitoring_Workflows_Tab" wizard is enabled + And wait load page + When click on cell with row index 1 in "name" column in "Workflows_Table" table on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then click on "Toggle_View_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard + And wait load page + Then verify "Workflow_List_View_Table" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard When click on cell with row index 1 in "name" column in "Workflow_List_View_Table" table on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page Then verify "Header" element visibility on "Jobs_Monitor_Tab_Info_Pane" wizard @@ -806,9 +933,17 @@ Feature: Jobs Monitoring Page And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Terminate_Message" + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is disabled + Then click on "Cross_Close_Button" element on "Jobs_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify "Terminate_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard is disabled + Then click on "Arrow_Back" element on "Workflows_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify that in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table with "main 2021-08-30 05-36-35" value in "name" column "Terminate" option is disabled + And wait load page @MLJM @smoke @@ -817,7 +952,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Workflows_Tab" wizard And wait load page @@ -862,7 +997,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" When select "Error" option in "Status_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard @@ -893,6 +1028,13 @@ Feature: Jobs Monitoring Page And wait load page Then verify "Workflows_Table" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard + Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "4 items selected" + When select "Terminating" option in "Status_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Title" element on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then verify "Workflows_Table" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Workflows_Tab" wizard Then select "View YAML" option in action menu on "Jobs_Monitoring_Workflows_Tab" wizard in "Workflows_Table" table at row with "kfpipeline 2021-07-06 11-16-28" value in "name" column @@ -906,19 +1048,8 @@ Feature: Jobs Monitoring Page And wait load page Then verify if "Notification_Popup" popup dialog appears Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Run_Message" - Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard - Then verify "Retry_Button" element visibility on "Notification_Popup" wizard - Then "Retry_Button" element on "Notification_Popup" should contains "RETRY" value - Then click on "Retry_Button" element on "Notification_Popup" wizard - And wait load page - Then verify if "Notification_Popup" popup dialog appears - Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Unsuccessful_Run_Message" - Then verify "Retry_Button" element visibility on "Notification_Popup" wizard - Then "Retry_Button" element on "Notification_Popup" should contains "RETRY" value + Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Successful_Run_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard - Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard @MLJM @smoke @@ -929,12 +1060,10 @@ Feature: Jobs Monitoring Page Then verify "Monitoring_Scheduled_Box" element visibility in "Projects_Monitoring_Container" on "Projects" wizard Then verify "Monitoring_Scheduled_Box_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then "Monitoring_Scheduled_Box_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Scheduled" value - Then verify "Total_Scheduled_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard - Then "Total_Scheduled_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Total" value Then verify "Total_Scheduled_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Scheduled_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -968,7 +1097,8 @@ Feature: Jobs Monitoring Page Then verify "Total_Job_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard When click on "Total_Job_Counter_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=job" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=job&dates=next24hours" + And wait load page Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Scheduled_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -1001,7 +1131,8 @@ Feature: Jobs Monitoring Page Then "Total_Workflows_Counter_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Workflows" value Then verify "Total_Workflows_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard When click on "Total_Workflows_Counter_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=workflow" + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=workflow&dates=next24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Scheduled_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -1027,14 +1158,12 @@ Feature: Jobs Monitoring Page Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard And wait load page Then verify redirection to "projects" - Then verify "Total_Scheduled_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard - Then "Total_Scheduled_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Total" value Then verify "Total_Job_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then verify "Total_Workflows_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then verify "Total_Scheduled_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Scheduled_Tab" wizard Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -1051,7 +1180,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then verify "Scheduled_Table" element visibility on "Jobs_Monitoring_Scheduled_Tab" wizard Then verify that 8 row elements are displayed in "Scheduled_Table" on "Jobs_Monitoring_Scheduled_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Jobs_Monitoring_Scheduled_Tab" wizard @@ -1119,7 +1248,7 @@ Feature: Jobs Monitoring Page And wait load page When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Scheduled_Tab" wizard Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" When select "Job" option in "Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard @@ -1150,13 +1279,14 @@ Feature: Jobs Monitoring Page @MLJM @smoke + # TODO: Total wf counter = 4, 3 row elements are displayed - known bug (due to running not in 24h period), couln't be fixed yet Scenario: MLJM012 - Check jobs/workflows/scheduled count consistency among counter data and Jobs monitoring Tabs Given open url And wait load page Then verify "Monitoring_Container" element visibility in "Projects_Monitoring_Container" on "Projects" wizard When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify "Jobs" tab is active in "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard Then verify "Jobs_Table" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 50" value @@ -1186,19 +1316,19 @@ Feature: Jobs Monitoring Page Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard And wait load page Then verify "Total_Counter_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "3" value + Then "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "4" value When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify "Workflows_Table" element visibility on "Jobs_Monitoring_Workflows_Tab" wizard Then verify that 3 row elements are displayed in "Workflows_Table" on "Jobs_Monitoring_Workflows_Tab" wizard Then navigate back And wait load page - Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then "Counter_Running_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "0" value - When click on "Counter_Running_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then "Counter_In_Process_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "1" value + When click on "Counter_In_Process_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify that 0 row elements are displayed in "Workflows_Table" on "Jobs_Monitoring_Workflows_Tab" wizard + Then verify that 1 row elements are displayed in "Workflows_Table" on "Jobs_Monitoring_Workflows_Tab" wizard Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard And wait load page Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard @@ -1221,7 +1351,7 @@ Feature: Jobs Monitoring Page Then "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" should contains "8" value When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then verify that 8 row elements are displayed in "Scheduled_Table" on "Jobs_Monitoring_Scheduled_Tab" wizard Then navigate back And wait load page @@ -1250,7 +1380,7 @@ Feature: Jobs Monitoring Page Then verify "Monitoring_Container" element visibility in "Projects_Monitoring_Container" on "Projects" wizard When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" @@ -1315,3 +1445,86 @@ Feature: Jobs Monitoring Page Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 50" value Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard should display hover tooltip "Common_Tooltips"."Auto_Refresh" + + @MLJM + @smoke + Scenario: MLJM017 - Check filtering of different projects within identical job function runs + Given open url + And wait load page + Then verify "Monitoring_Container" element visibility in "Projects_Monitoring_Container" on "Projects" wizard + When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" + Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value + Then verify breadcrumbs "projectsPage" label should be equal "Projects" value + Then verify "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "Jobs_Monitoring"."Tab_List" + Then verify "Jobs" tab is active in "Cross_Jobs_Tab_Selector" on "Jobs_Monitoring_Jobs_Tab" wizard + Then verify "Jobs_Table" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Jobs_Tab" wizard selected option value "Any time" + Then verify "Search_By_Name_Filter_Input" element visibility on "Jobs_Monitoring_Jobs_Tab" wizard + Then type value "fesf" to "Search_By_Name_Filter_Input" field on "Jobs_Monitoring_Jobs_Tab" wizard + Then click on "Refresh_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then value in "name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "fesf" + Then verify that 2 row elements are displayed in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard + When click on cell with row index 1 in "name" column in "Jobs_Table" table on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify that 3 row elements are displayed in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "cat-vs-dog-classification" + Then click on "Arrow_Back" element on "Jobs_Monitor_Tab" wizard + And wait load page + When click on cell with row index 2 in "name" column in "Jobs_Table" table on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify that 1 row elements are displayed in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "fsdemo-admin" + Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard + And wait load page + When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard + And wait load page + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" + Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Jobs_Monitoring_Jobs_Tab" wizard selected option value "Any time" + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then "Title" element on "FilterBy_Popup" should contains "Filter by" value + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + When select "cat-vs-dog-classification" option in "Project_Name_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + And wait load page + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "cat-vs-dog-classification" + When click on cell with value "fesf" in "name" column in "Jobs_Table" table on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify that 3 row elements are displayed in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "cat-vs-dog-classification" + Then click on "Arrow_Back" element on "Jobs_Monitor_Tab" wizard + And wait load page + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then click on "Clear_Button" element on "FilterBy_Popup" wizard + And wait load page + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then "Title" element on "FilterBy_Popup" should contains "Filter by" value + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + When select "fsdemo-admin" option in "Project_Name_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + And wait load page + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "fsdemo-admin" + When click on cell with value "fesf" in "name" column in "Jobs_Table" table on "Jobs_Monitoring_Jobs_Tab" wizard + And wait load page + Then verify that 1 row elements are displayed in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard + Then value in "project_name" column with "text" in "Jobs_Table" on "Jobs_Monitoring_Jobs_Tab" wizard should contains "fsdemo-admin" + Then click on "Arrow_Back" element on "Jobs_Monitor_Tab" wizard + And wait load page + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then click on "Clear_Button" element on "FilterBy_Popup" wizard + And wait load page + Then click on "Table_FilterBy_Button" element on "Jobs_Monitoring_Jobs_Tab" wizard + Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + \ No newline at end of file diff --git a/tests/features/models.feature b/tests/features/models.feature index f1594e4d89..b431dc3374 100644 --- a/tests/features/models.feature +++ b/tests/features/models.feature @@ -1090,6 +1090,7 @@ Feature: Models Page And wait load page And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard Then "No_Data_Message" element on "commonPagesHeader" should contains "The ingestion function has no steps and therefore no graph." value + And wait load page @MLM @smoke @@ -1459,7 +1460,7 @@ Feature: Models Page And wait load page And select "Model Endpoints" tab in "Models_Tab_Selector" on "Models" wizard And wait load page - When click on cell with row index 1 in "name" column in "Model_Endpoints_Table" table on "Model_Endpoints" wizard + When click on cell with row index 3 in "name" column in "Model_Endpoints_Table" table on "Model_Endpoints" wizard And wait load page Then verify "Info_Pane_Tab_Selector" element visibility on "Model_Endpoints_Info_Pane" wizard Then verify "Info_Pane_Tab_Selector" on "Model_Endpoints_Info_Pane" wizard should contains "Models_Endpoints_Info_Pane"."Tab_List" @@ -1516,7 +1517,7 @@ Feature: Models Page And wait load page And select "Model Endpoints" tab in "Models_Tab_Selector" on "Models" wizard And wait load page - When click on cell with row index 1 in "name" column in "Model_Endpoints_Table" table on "Model_Endpoints" wizard + When click on cell with row index 3 in "name" column in "Model_Endpoints_Table" table on "Model_Endpoints" wizard Then select "Metrics" tab in "Info_Pane_Tab_Selector" on "Model_Endpoints_Info_Pane" wizard Then click on "Choose_Metrics_Dropdown" element on "Model_Endpoints_Info_Pane" wizard And wait load page @@ -1541,6 +1542,7 @@ Feature: Models Page @MLM @smoke + # !!! restart mock is required Scenario: MLM037 - Verify the Delete option in Models table, details panel, full view action menu Given open url And wait load page diff --git a/tests/features/monitoringApp.feature b/tests/features/monitoringApp.feature index 074bc854d8..e7be622978 100644 --- a/tests/features/monitoringApp.feature +++ b/tests/features/monitoringApp.feature @@ -100,12 +100,12 @@ Feature: Monitoring app Page Then verify breadcrumbs "tab" label should be equal "Monitoring app" value And wait load page Then verify "Model_Endpoint_Detections_Title" element visibility on "Monitoring_App" wizard - Then "Model_Endpoint_Detections_Title" element on "Monitoring_App" should contains "Model Endpoint with detections" value + Then "Model_Endpoint_Detections_Title" element on "Monitoring_App" should contains "Model Endpoints with suspected/detected issue" value Then verify "Model_Endpoint_Detections_Tip" element visibility on "Monitoring_App" wizard Then verify "Model_Endpoint_Detections_Tip" element on "Monitoring_App" wizard should display hover hint "Label_Hint"."Model_Endpoint_With_Detections" Then verify "Model_Endpoint_Detections_Chart" element visibility on "Monitoring_App" wizard Then verify "Operating_Functions_Title" element visibility on "Monitoring_App" wizard - Then "Operating_Functions_Title" element on "Monitoring_App" should contains "Operating functions" value + Then "Operating_Functions_Title" element on "Monitoring_App" should contains "System functions" value Then verify "Operating_Functions_Tip" element visibility on "Monitoring_App" wizard Then verify "Operating_Functions_Tip" element on "Monitoring_App" wizard should display hover hint "Label_Hint"."Operating_Functions" Then verify "Operating_Functions_Table" element visibility on "Monitoring_App" wizard @@ -134,15 +134,15 @@ Feature: Monitoring app Page Then verify "All_Applications_Lag_Tip" element on "Monitoring_App" wizard should display hover hint "Label_Hint"."Lag" Then verify "All_Applications_Commited_Offset_Tip" element visibility on "Monitoring_App" wizard Then verify "All_Applications_Commited_Offset_Tip" element on "Monitoring_App" wizard should display hover hint "Label_Hint"."Commited_Offset" - Then verify "open_metrics" option is present on "Monitoring_App" wizard in "All_Applications_Table" table with "Monitorappv1" value in "name" column - Then verify "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "Monitorappv1" value in "name" column should display hover tooltip "Common_Tooltips"."Open_Metrics" with scroll "false" - Then click on "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "Monitorappv1" value in "name" column with scroll "false" + Then verify "open_metrics" option is present on "Monitoring_App" wizard in "All_Applications_Table" table with "monitorAppV1" value in "name" column + Then verify "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "monitorAppV1" value in "name" column should display hover tooltip "Common_Tooltips"."Open_Metrics" with scroll "false" + Then click on "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "monitorAppV1" value in "name" column with scroll "false" And wait load page Then verify "Application_Monitoring_Button" element visibility on "Application_Metrics" wizard Then "Application_Monitoring_Button" element on "Application_Metrics" should contains "Application monitoring" value Then navigate back And wait load page - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Application_Metrics_Button" element visibility on "Application_Monitoring" wizard Then "Application_Metrics_Button" element on "Application_Monitoring" should contains "Application metrics" value @@ -164,7 +164,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV2" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Back_Button" element visibility on "Application_Monitoring" wizard Then verify "Back_Button" element on "Application_Monitoring" wizard should display hover tooltip "Common_Tooltips"."Back_Button" @@ -172,7 +172,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv2" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV2" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Application_Name" element visibility on "Application_Monitoring" wizard Then "Application_Name" element on "Application_Monitoring" should contains "monitorAppV2" value @@ -226,7 +226,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Back_Button" element visibility on "Application_Monitoring" wizard Then verify "App_Status_Title" element visibility on "Application_Monitoring" wizard @@ -272,7 +272,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Artifacts_Title" element visibility on "Application_Monitoring" wizard Then "Artifacts_Title" element on "Application_Monitoring" should contains "Artifacts" value @@ -282,7 +282,9 @@ Feature: Monitoring app Page And wait load page Then verify breadcrumbs "tab" label should be equal "Artifacts" value And wait load page - Then "Table_Name_Filter_Input" element on "Files" should contains "monitorAppV1" attribute value + Then click on "Table_FilterBy_Button" element on "Files" wizard + And wait load page + Then "Table_Label_Filter_Input" element on "FilterBy_Popup" should contains "mlrun/app-name=monitorAppV1" attribute value And wait load page @MLMA @@ -302,7 +304,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Results_Title" element visibility on "Application_Monitoring" wizard Then "Results_Title" element on "Application_Monitoring" should contains "Results" value @@ -325,7 +327,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Metrics_Title" element visibility on "Application_Monitoring" wizard Then "Metrics_Title" element on "Application_Monitoring" should contains "Metrics" value @@ -350,7 +352,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page When scroll to the "Shards_Partitions_Status_Title" element on "Application_Monitoring" wizard Then verify "Shards_Partitions_Status_Title" element visibility on "Application_Monitoring" wizard @@ -380,7 +382,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Application_Metrics_Button" element visibility on "Application_Monitoring" wizard Then "Application_Metrics_Button" element on "Application_Monitoring" should contains "Application metrics" value @@ -395,8 +397,8 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then verify "open_metrics" option is present on "Monitoring_App" wizard in "All_Applications_Table" table with "Monitorappv1" value in "name" column - Then click on "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "Monitorappv1" value in "name" column with scroll "false" + Then verify "open_metrics" option is present on "Monitoring_App" wizard in "All_Applications_Table" table with "monitorAppV1" value in "name" column + Then click on "open_metrics" option on "Monitoring_App" wizard in "All_Applications_Table" table with "monitorAppV1" value in "name" column with scroll "false" And wait load page Then verify "Applications_Metrics_Title" element visibility on "Application_Metrics" wizard Then "Applications_Metrics_Title" element on "Application_Metrics" should contains "Applications metrics:" value @@ -431,7 +433,7 @@ Feature: Monitoring app Page And wait load page Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value - Then click on cell with value "Monitorappv1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard + Then click on cell with value "monitorAppV1" in "name" column in "All_Applications_Table" table on "Monitoring_App" wizard And wait load page Then verify "Application_Metrics_Button" element visibility on "Application_Monitoring" wizard Then "Application_Metrics_Button" element on "Application_Monitoring" should contains "Application metrics" value @@ -441,14 +443,14 @@ Feature: Monitoring app Page Then "Applications_Metrics_Title" element on "Application_Metrics" should contains "Applications metrics:" value Then verify "Endpoints_List_Section" element visibility on "Application_Metrics" wizard Then verify "Search_Endpoints_Counter" element visibility on "Application_Metrics" wizard - Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "2 endpoints found" value + Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "4 endpoints found" value Then verify "Endpoints_List_Table" element visibility on "Application_Metrics" wizard Then verify "Search_By_Endpoint_Filter_Input" element visibility on "Application_Metrics" wizard Then type value "boo" to "Search_By_Endpoint_Filter_Input" field on "Application_Metrics" wizard And wait load page Then value in "name" column with "text" in "Endpoints_List_Table" on "Application_Metrics" wizard should contains "GradientBoostingClassifier" - Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "1 endpoint found" value - Then type value "for" to "Search_By_Endpoint_Filter_Input" field on "Application_Metrics" wizard + Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "2 endpoints found" value + Then type value "RandomForestClassifier2" to "Search_By_Endpoint_Filter_Input" field on "Application_Metrics" wizard And wait load page Then value in "name" column with "text" in "Endpoints_List_Table" on "Application_Metrics" wizard should contains "RandomForestClassifier" Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "1 endpoint found" value diff --git a/tests/features/projectMonitoring.feature b/tests/features/projectMonitoring.feature index ed783387ca..63bbf4da9d 100644 --- a/tests/features/projectMonitoring.feature +++ b/tests/features/projectMonitoring.feature @@ -15,11 +15,11 @@ Feature: Project Monitoring Page Then verify "Project_Name" element visibility on "Project" wizard Then "Project_Name" element on "Project" should contains "default" value Then verify "Created_Details" element visibility on "Project" wizard - Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 15:21:14 PM" value + Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 17:21:14 PM" value Then verify "Owner_Details" element visibility on "Project" wizard Then "Owner_Details" element on "Project" should contains "Owner: igz_nobody" value - Then verify "Info_Baner" element visibility on "Project" wizard - Then "Info_Baner" element on "Project" should contains "Counters use a caching mechanism, and are not auto-refreshed." value + Then verify "Info_Baner_Icon" element visibility on "Project" wizard + Then verify "Info_Baner_Icon" element on "Project" wizard should display hover hint "Label_Hint"."Project_Monitoring_Counters" Then verify "Quick_Actions" element visibility on "Project" wizard Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" Then verify "Refresh_Button" element visibility on "Project" wizard @@ -35,18 +35,18 @@ Feature: Project Monitoring Page Then "Documents_Counter_Subtitle" element in "Artifacts_Stats_Container" on "Project" should contains "Documents" value Then verify "Documents_Counter_Number" element visibility in "Artifacts_Stats_Container" on "Project" wizard Then verify "LLM_Prompts_Counter_Subtitle" element visibility in "Artifacts_Stats_Container" on "Project" wizard - Then "LLM_Prompts_Counter_Subtitle" element in "Artifacts_Stats_Container" on "Project" should contains "LLM Prompts" value + Then "LLM_Prompts_Counter_Subtitle" element in "Artifacts_Stats_Container" on "Project" should contains "LLM prompt artifacts" value Then verify "LLM_Prompts_Counter_Number" element visibility in "Artifacts_Stats_Container" on "Project" wizard Then verify "Other_Artifacts_Counter_Subtitle" element visibility in "Artifacts_Stats_Container" on "Project" wizard - Then "Other_Artifacts_Counter_Subtitle" element in "Artifacts_Stats_Container" on "Project" should contains "Other Artifacts" value + Then "Other_Artifacts_Counter_Subtitle" element in "Artifacts_Stats_Container" on "Project" should contains "Other artifacts" value Then verify "Other_Artifacts_Counter_Number" element visibility in "Artifacts_Stats_Container" on "Project" wizard Then verify "Workflows_Stats_Title" element visibility in "Workflows_Stats_Container" on "Project" wizard Then "Workflows_Stats_Title" element in "Workflows_Stats_Container" on "Project" should contains "Workflows" value Then verify "Filtering_Time_Period" element visibility in "Workflows_Stats_Container" on "Project" wizard - Then "Filtering_Time_Period" element in "Workflows_Stats_Container" on "Project" should contains "24 hrs" value + Then "Filtering_Time_Period" element in "Workflows_Stats_Container" on "Project" should contains "Last 24 hrs" value Then verify "Workflows_Stats_Counter" element visibility in "Workflows_Stats_Container" on "Project" wizard Then verify "In_Process_Counter_Subtitle" element visibility in "Workflows_Stats_Container" on "Project" wizard - Then "In_Process_Counter_Subtitle" element in "Workflows_Stats_Container" on "Project" should contains "In Process" value + Then "In_Process_Counter_Subtitle" element in "Workflows_Stats_Container" on "Project" should contains "In process" value Then verify "In_Process_Counter_Status_Icon" element visibility in "Workflows_Stats_Container" on "Project" wizard Then verify "In_Process_Counter_Status_Icon" element in "Workflows_Stats_Container" on "Project" wizard should display hover tooltip "Common_Tooltips"."Running_Tip" Then verify "In_Process_Counter_Number" element visibility in "Workflows_Stats_Container" on "Project" wizard @@ -64,7 +64,7 @@ Feature: Project Monitoring Page Then verify "Scheduled_Stats_Title" element visibility in "Scheduled_Stats_Container" on "Project" wizard Then "Scheduled_Stats_Title" element in "Scheduled_Stats_Container" on "Project" should contains "Scheduled" value Then verify "Filtering_Time_Period" element visibility in "Scheduled_Stats_Container" on "Project" wizard - Then "Filtering_Time_Period" element in "Scheduled_Stats_Container" on "Project" should contains "24 hrs" value + Then "Filtering_Time_Period" element in "Scheduled_Stats_Container" on "Project" should contains "Next 24 hrs" value Then verify "Scheduled_Stats_Counter" element visibility in "Scheduled_Stats_Container" on "Project" wizard Then verify "Jobs_Counter_Subtitle" element visibility in "Scheduled_Stats_Container" on "Project" wizard Then "Jobs_Counter_Subtitle" element in "Scheduled_Stats_Container" on "Project" should contains "Jobs" value @@ -76,11 +76,11 @@ Feature: Project Monitoring Page Then "Models_Stats_Title" element in "Models_Stats_Container" on "Project" should contains "Models" value Then verify "Model_Stats_Counter" element visibility in "Models_Stats_Container" on "Project" wizard Then verify "Monitoring_App_Stats_Title" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard - Then "Monitoring_App_Stats_Title" element in "Monitoring_App_Stats_Container" on "Project" should contains "Monitoring App" value - Then verify "Monitoring_App_Succeeded_Stats_Counter" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard - Then verify "Monitoring_App_Succeeded_Counter_Subtitle" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard - Then "Monitoring_App_Succeeded_Counter_Subtitle" element in "Monitoring_App_Stats_Container" on "Project" should contains "Succeeded" value - Then verify "Monitoring_App_Succeeded_Counter_Status_Icon" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard + Then "Monitoring_App_Stats_Title" element in "Monitoring_App_Stats_Container" on "Project" should contains "Monitoring apps" value + Then verify "Monitoring_App_Running_Stats_Counter" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard + Then verify "Monitoring_App_Running_Counter_Subtitle" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard + Then "Monitoring_App_Running_Counter_Subtitle" element in "Monitoring_App_Stats_Container" on "Project" should contains "Running" value + Then verify "Monitoring_App_Running_Counter_Status_Icon" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then verify "Monitoring_App_Failed_Stats_Counter" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then verify "Monitoring_App_Failed_Counter_Subtitle" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then "Monitoring_App_Failed_Counter_Subtitle" element in "Monitoring_App_Stats_Container" on "Project" should contains "Failed" value @@ -89,7 +89,7 @@ Feature: Project Monitoring Page Then "Alerts_Stats_Title" element in "Alerts_Stats_Container" on "Project" should contains "Alerts" value Then verify "Alerts_Stats_Title_Icon" element visibility in "Alerts_Stats_Container" on "Project" wizard Then verify "Filtering_Time_Period" element visibility in "Alerts_Stats_Container" on "Project" wizard - Then "Filtering_Time_Period" element in "Alerts_Stats_Container" on "Project" should contains "24 hrs" value + Then "Filtering_Time_Period" element in "Alerts_Stats_Container" on "Project" should contains "Last 24 hrs" value Then verify "Alerts_Stats_Counter" element visibility in "Alerts_Stats_Container" on "Project" wizard Then verify "Alerts_Stats_Endpoint_Subtitle" element visibility in "Alerts_Stats_Container" on "Project" wizard Then "Alerts_Stats_Endpoint_Subtitle" element in "Alerts_Stats_Container" on "Project" should contains "Endpoint" value @@ -114,11 +114,11 @@ Feature: Project Monitoring Page Then verify "Project_Name" element visibility on "Project" wizard Then "Project_Name" element on "Project" should contains "default" value Then verify "Created_Details" element visibility on "Project" wizard - Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 15:21:14 PM" value + Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 17:21:14 PM" value Then verify "Owner_Details" element visibility on "Project" wizard Then "Owner_Details" element on "Project" should contains "Owner: igz_nobody" value - Then verify "Info_Baner" element visibility on "Project" wizard - Then "Info_Baner" element on "Project" should contains "Counters use a caching mechanism, and are not auto-refreshed." value + Then verify "Info_Baner_Icon" element visibility on "Project" wizard + Then verify "Info_Baner_Icon" element on "Project" wizard should display hover hint "Label_Hint"."Project_Monitoring_Counters" Then verify "Quick_Actions" element visibility on "Project" wizard Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" Then verify "Refresh_Button" element visibility on "Project" wizard @@ -132,7 +132,7 @@ Feature: Project Monitoring Page Then check "Last 24 hrs" header value in "time_period" column in "Runs_Statistic_Table" table on "Project" wizard Then verify visibility of header column "in_process_counter_number" in "Runs_Statistic_Table" table on "Project" wizard Then verify visibility of header column "in_process_counter_subtitle" in "Runs_Statistic_Table" table on "Project" wizard - Then check "In Progress" header value in "in_process_counter_subtitle" column in "Runs_Statistic_Table" table on "Project" wizard + Then check "In Process" header value in "in_process_counter_subtitle" column in "Runs_Statistic_Table" table on "Project" wizard Then verify visibility of header column "in_process_counter_icon" in "Runs_Statistic_Table" table on "Project" wizard Then verify "In_Process_Counter_Subtitle" element in "Runs_Statistic_Section_Container" on "Project" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" Then verify visibility of header column "failed_counter_number" in "Runs_Statistic_Table" table on "Project" wizard @@ -941,7 +941,7 @@ Feature: Project Monitoring Page Then verify "Schedule" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Schedule_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Schedule_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Any time" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Next 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -956,7 +956,7 @@ Feature: Project Monitoring Page Then verify "Schedule" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Schedule_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Schedule_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Any time" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Next 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Job" @@ -971,7 +971,7 @@ Feature: Project Monitoring Page Then verify "Schedule" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Schedule_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Schedule_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Any time" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Next 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Workflow" @@ -994,7 +994,7 @@ Feature: Project Monitoring Page Then verify "Monitor Workflows" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Workflows_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Workflows_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past week" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Workflows_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Workflows_Monitor_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" @@ -1022,7 +1022,7 @@ Feature: Project Monitoring Page Then verify "Monitor Workflows" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Workflows_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Workflows_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past week" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Workflows_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Workflows_Monitor_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Error, Failed" @@ -1036,7 +1036,7 @@ Feature: Project Monitoring Page Then verify "Monitor Workflows" tab is active in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard Then verify "Table_Name_Filter_Input" element visibility on "Workflows_Monitor_Tab" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Workflows_Monitor_Tab" wizard - Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past week" + Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Past 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Workflows_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Workflows_Monitor_Tab" wizard Then verify "Status_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Completed" @@ -1053,7 +1053,7 @@ Feature: Project Monitoring Page And wait load page And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page - When click on "Monitoring_App_Succeeded_Stats_Counter" element in "Monitoring_App_Stats_Container" on "Project" wizard + When click on "Monitoring_App_Running_Stats_Counter" element in "Monitoring_App_Stats_Container" on "Project" wizard And wait load page Then verify breadcrumbs "tab" label should be equal "Monitoring app" value Then verify redirection to "projects/default/monitoring-app" @@ -1196,11 +1196,11 @@ Feature: Project Monitoring Page And wait load page Then verify "Search_Input" element visibility on "Consumer_Groups" wizard Then verify "Consumer_Groups_Table" element visibility on "Consumer_Groups" wizard - Then type value "C" to "Search_Input" field on "Consumer_Groups" wizard + Then type value "c" to "Search_Input" field on "Consumer_Groups" wizard Then value in "consumer_group_name" column with "text" in "Consumer_Groups_Table" on "Consumer_Groups" wizard should contains "C" - Then type value "CONSUMER" to "Search_Input" field on "Consumer_Groups" wizard + Then type value "consumer" to "Search_Input" field on "Consumer_Groups" wizard Then value in "consumer_group_name" column with "text" in "Consumer_Groups_Table" on "Consumer_Groups" wizard should contains "Consumer" - Then type value "randomText" to "Search_Input" field on "Consumer_Groups" wizard + Then type value "randomtext" to "Search_Input" field on "Consumer_Groups" wizard Then check "ConsumerGroup1" value not in "consumer_group_name" column in "Consumer_Groups_Table" table on "Consumer_Groups" wizard @MLPM @@ -1248,12 +1248,12 @@ Feature: Project Monitoring Page And wait load page Then verify "Search_Input" element visibility on "Consumer_Groups" wizard Then verify "Shard_Lags_Table" element visibility on "Consumer_Groups" wizard - Then type value "SHARD" to "Search_Input" field on "Consumer_Groups" wizard + Then type value "shard" to "Search_Input" field on "Consumer_Groups" wizard Then click on "Refresh_Button" element on "Consumer_Groups" wizard Then value in "shard_name" column with "text" in "Shard_Lags_Table" on "Consumer_Groups" wizard should contains "shard" Then type value "shard-id-0" to "Search_Input" field on "Consumer_Groups" wizard Then value in "shard_name" column with "text" in "Shard_Lags_Table" on "Consumer_Groups" wizard should contains "shard-id-0" - Then type value "randomText" to "Search_Input" field on "Consumer_Groups" wizard + Then type value "randomtext" to "Search_Input" field on "Consumer_Groups" wizard Then check "shard-id-0" value not in "shard_name" column in "Shard_Lags_Table" table on "Consumer_Groups" wizard @MLPM diff --git a/tests/features/projectsPage.feature b/tests/features/projectsPage.feature index 05fbea66f3..c91c72e097 100644 --- a/tests/features/projectsPage.feature +++ b/tests/features/projectsPage.feature @@ -167,6 +167,7 @@ Feature: Projects Page @MLPr @sanity @smoke + #TODO: update "Labels_Value" options rules Scenario: MLPr007 - Create new ML Project with description Given open url And wait load page @@ -186,7 +187,7 @@ Feature: Projects Page Then type into "Description_Input" on "Create_New_Project" popup dialog "automation test description new" value Then type value "/" to "Labels_Value" field on "Create_New_Project" wizard Then verify labels warning should display options "Input_Hint"."Projects_Labels_Warning_Value" - Then verify "Labels_Value" options rules on "Create_New_Project" wizard with labels + # Then verify "Labels_Value" options rules on "Create_New_Project" wizard with labels And wait load page Then type value "/" to "Labels_Key" field on "Create_New_Project" wizard Then type value "/" to "Labels_Value" field on "Create_New_Project" wizard @@ -320,11 +321,6 @@ Feature: Projects Page And click on row root with value "navigation-test" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard - And click on cell with value "Quick actions" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard - And hover "MLRun_Logo" component on "commonPagesHeader" wizard - And wait load page - Then verify value should equal "navigation-test" in "Header_Name_Label" on "Demo_Project" wizard - And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard Then click on "Pin_Quick_Link_Button" element on "commonPagesHeader" wizard And click on cell with value "Project monitoring" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard And wait load page @@ -402,13 +398,13 @@ Feature: Projects Page Then verify "Monitoring_Jobs_Box_Title_Tip" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Monitoring_Jobs_Box_Title_Tip" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover hint "Common_Tooltips"."Monitoring_Jobs_Box_Title_Tip" Then verify "Filtering_Time_Period" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then "Filtering_Time_Period" element in "Monitoring_Jobs_Box" on "Projects" should contains "Past 24 hrs" value + Then "Filtering_Time_Period" element in "Monitoring_Jobs_Box" on "Projects" should contains "Last 24 hrs" value Then verify "Total_Counter_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Running_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then "Counter_Running_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "Running" value - Then verify "Counter_Running_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then verify "Counter_Running_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" + Then "Counter_Running_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "In process" value + Then verify "Counter_In_Process_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Failed_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then "Counter_Failed_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "Failed" value @@ -418,7 +414,7 @@ Feature: Projects Page Then verify "Counter_Completed_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then "Counter_Completed_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "Succeeded" value Then verify "Counter_Completed_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then verify "Counter_Running_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" + Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" Then verify "Counter_Completed_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Succeeded" Then "Counter_Completed_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" should contains "1" value When click on "Counter_Running_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard @@ -428,21 +424,21 @@ Feature: Projects Page And wait load page When click on "Counter_Failed_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=error%2Caborted&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=error%2Caborted&dates=past24hours&bePage=1&fePage=1" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back And wait load page When click on "Counter_Completed_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=completed&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=completed&dates=past24hours&bePage=1&fePage=1" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back And wait load page When click on "Total_Counter_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&bePage=1&fePage=1" + Then verify redirection to "projects/*/jobs-monitoring/jobs?state=all&dates=past24hours&bePage=1&fePage=1" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back @@ -461,13 +457,13 @@ Feature: Projects Page Then verify "Monitoring_Workflows_Box_Title" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then "Monitoring_Workflows_Box_Title" element in "Monitoring_Workflows_Box" on "Projects" should contains "Workflows" value Then verify "Filtering_Time_Period" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then "Filtering_Time_Period" element in "Monitoring_Workflows_Box" on "Projects" should contains "Past 24 hours" value + Then "Filtering_Time_Period" element in "Monitoring_Workflows_Box" on "Projects" should contains "Last 24 hrs" value Then verify "Total_Counter_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then verify "Counter_Running_Status_Subtitle" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then "Counter_Running_Status_Subtitle" element in "Monitoring_Workflows_Box" on "Projects" should contains "In Process" value - Then verify "Counter_Running_Status_Icon" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then verify "Counter_Running_Status_Icon" element in "Monitoring_Workflows_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Running_Tip" + Then verify "Counter_In_Process_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Subtitle" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then "Counter_In_Process_Status_Subtitle" element in "Monitoring_Workflows_Box" on "Projects" should contains "In process" value + Then verify "Counter_In_Process_Status_Icon" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Workflows_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Running_Tip" Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then verify "Counter_Failed_Status_Subtitle" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then "Counter_Failed_Status_Subtitle" element in "Monitoring_Workflows_Box" on "Projects" should contains "Failed" value @@ -477,30 +473,31 @@ Feature: Projects Page Then verify "Counter_Completed_Status_Subtitle" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then "Counter_Completed_Status_Subtitle" element in "Monitoring_Workflows_Box" on "Projects" should contains "Succeeded" value Then verify "Counter_Completed_Status_Icon" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Workflows_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Running_Tip" Then verify "Counter_Completed_Status_Icon" element in "Monitoring_Workflows_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Succeeded" - When click on "Counter_Running_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard + When click on "Counter_In_Process_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=running&dates=anyTime" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=running%2Cterminating&dates=anyTime" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back And wait load page When click on "Counter_Failed_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=error%2Cfailed" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=error%2Cfailed&dates=past24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back And wait load page When click on "Counter_Completed_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=completed" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=completed&dates=past24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back And wait load page When click on "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" wizard - Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all" + Then verify redirection to "projects/*/jobs-monitoring/workflows?state=all&dates=past24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value Then navigate back @@ -519,33 +516,31 @@ Feature: Projects Page Then verify "Monitoring_Scheduled_Box_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then "Monitoring_Scheduled_Box_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Scheduled" value Then verify "Filtering_Time_Period" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard - Then "Filtering_Time_Period" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Next 24 hours" value + Then "Filtering_Time_Period" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Next 24 hrs" value Then verify "Total_Job_Counter_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then "Total_Job_Counter_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Jobs" value Then verify "Total_Workflows_Counter_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then "Total_Workflows_Counter_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Workflows" value Then verify "Total_Job_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard Then verify "Total_Workflows_Counter_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard - Then verify "Total_Scheduled_Title" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard - Then "Total_Scheduled_Title" element in "Monitoring_Scheduled_Box" on "Projects" should contains "Total" value Then verify "Total_Scheduled_Number" element visibility in "Monitoring_Scheduled_Box" on "Projects" wizard When click on "Total_Scheduled_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard And wait load page - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=all&dates=next24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value And wait load page Then navigate back And wait load page When click on "Total_Workflows_Counter_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=workflow" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=workflow&dates=next24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value And wait load page Then navigate back And wait load page When click on "Total_Job_Counter_Number" element in "Monitoring_Scheduled_Box" on "Projects" wizard - Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=job" + Then verify redirection to "projects/*/jobs-monitoring/scheduled?type=job&dates=next24hours" Then verify breadcrumbs "cross" label should be equal "Jobs monitoring" value Then verify breadcrumbs "projectsPage" label should be equal "Projects" value And wait load page @@ -566,7 +561,7 @@ Feature: Projects Page Then "Monitoring_Alerts_Box_Title" element in "Monitoring_Alerts_Box" on "Projects" should contains "Alerts" value Then verify "Monitoring_Alerts_Box_Title_Icon" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard Then verify "Filtering_Time_Period" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard - Then "Filtering_Time_Period" element in "Monitoring_Alerts_Box" on "Projects" should contains "Past 24 hours" value + Then "Filtering_Time_Period" element in "Monitoring_Alerts_Box" on "Projects" should contains "Last 24 hrs" value Then verify "Total_Endpoint_Counter_Title" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard Then "Total_Endpoint_Counter_Title" element in "Monitoring_Alerts_Box" on "Projects" should contains "Endpoint" value Then verify "Total_Endpoint_Counter_Number" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard @@ -576,8 +571,6 @@ Feature: Projects Page Then verify "Total_Application_Counter_Title" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard Then "Total_Application_Counter_Title" element in "Monitoring_Alerts_Box" on "Projects" should contains "Application" value Then verify "Total_Application_Counter_Number" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard - Then verify "Total_Alerts_Title" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard - Then "Total_Alerts_Title" element in "Monitoring_Alerts_Box" on "Projects" should contains "Total" value Then verify "Total_Alerts_Number" element visibility in "Monitoring_Alerts_Box" on "Projects" wizard Then "Total_Alerts_Number" element in "Monitoring_Alerts_Box" on "Projects" should contains "39" value When click on "Total_Alerts_Number" element in "Monitoring_Alerts_Box" on "Projects" wizard @@ -620,7 +613,7 @@ Feature: Projects Page Then verify "Monitoring_Container_Title" element visibility in "Projects_Monitoring_Container" on "Projects" wizard Then "Monitoring_Container_Title" element in "Projects_Monitoring_Container" on "Projects" should contains "Monitoring" value Then verify "Monitoring_Jobs_Box_Title" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then "Monitoring_Jobs_Box_Title" element in "Monitoring_Jobs_Box" on "Projects" should contains "Jobs" value + Then "Monitoring_Jobs_Box_Title" element in "Monitoring_Jobs_Box" on "Projects" should contains "Runs" value Then verify "Total_Counter_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard @@ -631,8 +624,8 @@ Feature: Projects Page Then "Monitoring_Workflows_Box_Title" element in "Monitoring_Workflows_Box" on "Projects" should contains "Workflows" value Then verify "Total_Counter_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then "Total_Counter_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "4" value - Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard - Then "Counter_Running_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "1" value + Then verify "Counter_In_Process_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard + Then "Counter_In_Process_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "1" value Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard Then "Counter_Failed_Status_Number" element in "Monitoring_Workflows_Box" on "Projects" should contains "1" value Then verify "Counter_Completed_Status_Number" element visibility in "Monitoring_Workflows_Box" on "Projects" wizard diff --git a/tests/mockServer/data/run.json b/tests/mockServer/data/run.json index 85b19099bd..d4f2b453da 100644 --- a/tests/mockServer/data/run.json +++ b/tests/mockServer/data/run.json @@ -371,6 +371,47 @@ "retry_count": 0 } }, + { + "kind": "run", + "metadata": { + "name": "fesf", + "uid": "c1a32f275eb743f781fd13d7a316a657", + "iteration": 0, + "project": "fsdemo-admin", + "labels": { + "v3io_user": "admin", + "owner": "admin", + "kind": "job" + }, + "annotations": {} + }, + "spec": { + "function": "fsdemo-admin/fesf@cfa663e14f1c7b71c7072afbc91827a23a86e964", + "log_level": "info", + "parameters": {}, + "outputs": [], + "output_path": "v3io:///projects/fsdemo-admin/artifacts/c1a32f275eb743f781fd13d7a316a657", + "inputs": {}, + "hyperparams": {}, + "hyper_param_options": {}, + "data_stores": [], + "retry": { + "count": 6, + "backoff": { + "base_delay": "30s" + } + } + }, + "status": { + "state": "error", + "results": {}, + "start_time": "2021-09-10T11:46:36.715480+00:00", + "last_update": "2021-09-10T11:46:36.768280+00:00", + "artifacts": [], + "error": "(422)\nReason: Unprocessable Entity\nHTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Fri, 10 Sep 2021 11:46:36 GMT', 'Content-Length': '970'})\nHTTP response body: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Pod \\\"fesf-frtb9\\\" is invalid: [spec.volumes[0].name: Invalid value: \\\"NAME\\\": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.containers[0].volumeMounts[0].name: Not found: \\\"NAME\\\"]\",\"reason\":\"Invalid\",\"details\":{\"name\":\"fesf-frtb9\",\"kind\":\"Pod\",\"causes\":[{\"reason\":\"FieldValueInvalid\",\"message\":\"Invalid value: \\\"NAME\\\": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')\",\"field\":\"spec.volumes[0].name\"},{\"reason\":\"FieldValueNotFound\",\"message\":\"Not found: \\\"NAME\\\"\",\"field\":\"spec.containers[0].volumeMounts[0].name\"}]},\"code\":422}\n\n", + "retry_count": 0 + } + }, { "kind": "run", "metadata": { diff --git a/tests/mockServer/data/runs.json b/tests/mockServer/data/runs.json index 0e536fae5e..2f89e038f7 100644 --- a/tests/mockServer/data/runs.json +++ b/tests/mockServer/data/runs.json @@ -495,6 +495,47 @@ "retry_count": 1 } }, + { + "kind": "run", + "metadata": { + "name": "fesf", + "uid": "c1a32f275eb743f781fd13d7a316a657", + "iteration": 0, + "project": "fsdemo-admin", + "labels": { + "v3io_user": "admin", + "owner": "admin", + "kind": "job" + }, + "annotations": {} + }, + "spec": { + "function": "fsdemo-admin/fesf@cfa663e14f1c7b71c7072afbc91827a23a86e964", + "log_level": "info", + "parameters": {}, + "outputs": [], + "output_path": "v3io:///projects/fsdemo-admin/artifacts/c1a32f275eb743f781fd13d7a316a657", + "inputs": {}, + "hyperparams": {}, + "hyper_param_options": {}, + "data_stores": [], + "retry": { + "count": 6, + "backoff": { + "base_delay": "30s" + } + } + }, + "status": { + "state": "error", + "results": {}, + "start_time": "2021-09-10T11:46:36.715480+00:00", + "last_update": "2021-09-10T11:46:36.768280+00:00", + "artifacts": [], + "error": "(422)\nReason: Unprocessable Entity\nHTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Fri, 10 Sep 2021 11:46:36 GMT', 'Content-Length': '970'})\nHTTP response body: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Pod \\\"fesf-frtb9\\\" is invalid: [spec.volumes[0].name: Invalid value: \\\"NAME\\\": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.containers[0].volumeMounts[0].name: Not found: \\\"NAME\\\"]\",\"reason\":\"Invalid\",\"details\":{\"name\":\"fesf-frtb9\",\"kind\":\"Pod\",\"causes\":[{\"reason\":\"FieldValueInvalid\",\"message\":\"Invalid value: \\\"NAME\\\": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')\",\"field\":\"spec.volumes[0].name\"},{\"reason\":\"FieldValueNotFound\",\"message\":\"Not found: \\\"NAME\\\"\",\"field\":\"spec.containers[0].volumeMounts[0].name\"}]},\"code\":422}\n\n", + "retry_count": 0 + } + }, { "kind": "run", "metadata": {