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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/features/MLFunction.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ Feature: ML Functions
Then click on "Cross_Cancel_Button" element on "View_YAML" wizard
Then click on cell with row index 8 in "expand_btn" column in "Functions_Table" table on "ML_Functions" wizard
And wait load page
Then select "View YAML" option in action menu on "ML_Functions" wizard in "Functions_Table" table at row with "Nov 23, 2021, 11:31:51 AM" value in "name" column
Then select "View YAML" option in action menu on "ML_Functions" wizard in "Functions_Table" table at row with "Nov 23, 2021, 10:31:51 AM" value in "name" column
Then verify if "View_YAML" popup dialog appears
Then verify "Cross_Cancel_Button" element visibility on "View_YAML" wizard
Then verify "YAML_Modal_Container" element visibility on "View_YAML" wizard
Expand Down
6 changes: 3 additions & 3 deletions tests/features/alerts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@ Feature: Alerts Page
When select "Job" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard
Then click on "Apply_Button" element on "FilterBy_Popup" wizard
And wait load page
Then type value "alertd0beb8b0b8" to "Search_By_Name_Filter_Input" field on "Alerts" wizard
Then type value "alertd478b0739b" to "Search_By_Name_Filter_Input" field on "Alerts" wizard
Then click on "Refresh_Button" element on "Alerts" wizard
And wait load page
Then value in "alertName" column with "text" in "Alerts_Table" on "Alerts" wizard should contains "alertd0beb8b0b8"
Then value in "alertName" column with "text" in "Alerts_Table" on "Alerts" wizard should contains "alertd478b0739b"
And wait load page
Then verify "Alerts_Table" element visibility on "Alerts" wizard
Then value in "entityType" column with "tooltip" in "Alerts_Table" on "Alerts" wizard should contains "Job"
When click on cell with row index 1 in "alertName" column in "Alerts_Table" table on "Alerts" wizard
And wait load page
Then verify "Header" element visibility on "Alerts_Jobs_Info_Pane" wizard
Then "Header" element on "Alerts_Jobs_Info_Pane" should contains "alertd0beb8b0b8" value
Then "Header" element on "Alerts_Jobs_Info_Pane" should contains "alertd478b0739b" value
Then verify "Overview_General_Headers" element visibility on "Alerts_Jobs_Info_Pane" wizard
Then verify "Overview_General_Headers" on "Alerts_Jobs_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_General_Headers_PerProject"
Then verify "Job_Detail_PopUp_Link" element visibility on "Alerts_Jobs_Info_Pane" wizard
Expand Down
5 changes: 1 addition & 4 deletions tests/features/artifacts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ Feature: Artifacts Page
When select "V3IO" option in "Path_Scheme_Combobox" combobox on "Target_Path" accordion on "Register_File_Popup" wizard
When type value "target/path" to "Path_Scheme_Combobox" field on "Target_Path" on "Register_File_Popup" wizard
Then click on "Register_Button" element on "Register_File_Popup" wizard
And wait load page
Then verify if "Confirm_Popup" popup dialog appears
Then "Title" element on "Confirm_Popup" should contains "Overwrite artifact?" value
When click on "Overwrite_Button" element on "Confirm_Popup" wizard
Expand Down Expand Up @@ -513,7 +512,7 @@ Feature: Artifacts Page
Then verify "Title" element visibility on "Modal_Transition_Popup" wizard
Then "Title" element on "Modal_Transition_Popup" should contains "survival-curves_km-timelines" value
Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard
Then "Data_Status" element on "Modal_Transition_Popup" should contains "Aug 29, 2021, 10:54:15 PM" value
Then "Data_Status" element on "Modal_Transition_Popup" should contains "Aug 29, 2021, 07:54:15 PM" value
Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard
Then click on "Refresh_Button" element on "Modal_Transition_Popup" wizard
And wait load page
Expand Down Expand Up @@ -823,7 +822,6 @@ Feature: Artifacts Page
When select "V3IO" option in "Path_Scheme_Combobox" combobox on "Target_Path" accordion on "Register_File_Popup" wizard
When type value "target/path" to "Path_Scheme_Combobox" field on "Target_Path" on "Register_File_Popup" wizard
Then click on "Register_Button" element on "Register_File_Popup" wizard
And wait load page
Then verify if "Confirm_Popup" popup dialog appears
Then "Title" element on "Confirm_Popup" should contains "Overwrite artifact?" value
When click on "Overwrite_Button" element on "Confirm_Popup" wizard
Expand Down Expand Up @@ -875,7 +873,6 @@ Feature: Artifacts Page
When select "V3IO" option in "Path_Scheme_Combobox" combobox on "Target_Path" accordion on "Register_File_Popup" wizard
When type value "target/path" to "Path_Scheme_Combobox" field on "Target_Path" on "Register_File_Popup" wizard
Then click on "Register_Button" element on "Register_File_Popup" wizard
And wait load page
Then verify if "Confirm_Popup" popup dialog appears
Then "Title" element on "Confirm_Popup" should contains "Overwrite artifact?" value
When click on "Overwrite_Button" element on "Confirm_Popup" wizard
Expand Down
38 changes: 26 additions & 12 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,24 @@ such restriction.
*/
export default {
Project: {
Create_New_Options: [
'Batch run',
'Feature set',
Quick_Actions_Options: [
'Register dataset',
'Register artifact',
'Register dataset'
'Batch run',
'Train model',
'Batch inference',
'Create real-time function'
],
Create_New_Options_Demo: [
Quick_Actions_Options_Demo: [
'Register dataset',
'Register artifact',
'Batch run',
'Train model',
'Batch inference',
'Create real-time function',
'ML function',
'Feature set',
'Register artifact',
'Register model',
'Register dataset'
'Register model'
],
Online_Status: 'online',
Data_Collection_Description:
Expand Down Expand Up @@ -385,7 +390,7 @@ export default {
Back_Button: 'Back',
Expand_All_Button: 'Expand all',
In_Process_Jobs: 'Aborting, Pending, Pending retry, Running',
Running_Tip: 'Running',
Running_Tip: 'Running, Terminating',
Failed_Tip: 'Failed',
Failed_Jobs: 'Aborted, Error',
Failed_Worflows: 'Error, Failed',
Expand Down Expand Up @@ -535,7 +540,8 @@ export default {
Commited_Offset: 'Total number of messages handled by the app',
Endpoints_Tip: 'Model endpoints processed by the monitoring app during the selected time frame',
Metrics_Tip: 'This table displays the values of the last metrics captured by the monitoring application. If there are metrics for more than one model endpoint at the same time, the table displays only one of those.',
Shards_Partitions_Status_Tip: 'This table displays the current status of each shard'
Shards_Partitions_Status_Tip: 'This table displays the current status of each shard',
Runs_Statistic_Section_Title_Tip: 'Number of Job runs, clicking on the counters navigates to jobs screen.'
},
Descriptions: {
Archive_Project:
Expand Down Expand Up @@ -595,7 +601,9 @@ export default {
'Labels:',
'Log level:',
'Output path:',
'Total iterations:'
'Total iterations:',
'Retry count:',
'Maximum retries:'
]
},
Jobs_Monitor_Tab: {
Expand Down Expand Up @@ -641,7 +649,7 @@ export default {
'Pending',
'Pending retry'
],
Workflows_Status_Filter_Options: ['All', 'Error', 'Failed', 'Running', 'Completed'],
Workflows_Status_Filter_Options: ['All', 'Error', 'Failed', 'Running', 'Completed', 'Terminating'],
Jobs_Type_Filter_Options: [
'All',
'Job',
Expand Down Expand Up @@ -741,12 +749,18 @@ export default {
/No data matches the filter: "Created at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Project: (.+?)"/,
Common_Message_Jobs_Monitoring_Status:
/No data matches the filter: "Created at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Status: (.+?)"/,
Common_Message_Monitoring_Workflow:
/No data matches the filter: "Created at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}"/,
Common_Message_Monitoring_Workflow_Status:
/No data matches the filter: "Status: (.+?)"/,
Common_Message_Jobs_Monitoring_Type:
/No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Type: (.+?)"/,
Common_Message_Monitor_Jobs:
/No data matches the filter: "Start time: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}"/,
Common_Message_Jobs_Monitoring_Scheduled:
/No data matches the filter: "Scheduled at: \d{2}\/\d{2}\/\d{4} \d{2}:\d{2} - \d{2}\/\d{2}\/\d{4} \d{2}:\d{2}, Project: (.+?)"/,
Common_Message_Scheduled_Type:
/No data matches the filter: "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:
Expand Down
15 changes: 15 additions & 0 deletions tests/features/common/actions/table.action.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export const getColumnValues = async (driver, table, columnName) => {
})
}

export const getHeaderColumnValue = async (driver, table, columnName) => {
const element = await driver.findElement(table.headerSorters[columnName])

return await element.getText()
}

export const getTableRows = async (driver, table) => {
const arr = await driver
.findElements(table.tableColumns[table.tableCulumnNames[0]])
Expand All @@ -60,6 +66,15 @@ export const isContainsValueInColumn = async (driver, table, columnName, value)
expect(arr.includes(value)).equal(true, `Column values [${arr}] is not equal with "${value}" `)
}

export const isContainsValueInHeaderColumn = async (driver, table, columnName, value) => {
const actualValue = await getHeaderColumnValue(driver, table, columnName)

expect(actualValue.includes(value)).equal(
true,
`Header column "${columnName}" value "${actualValue}" does not include "${value}"`
)
}

export const isNotContainsValueInColumn = async (driver, table, columnName, value) => {
const arr = await getColumnValues(driver, table, columnName)
expect(arr.includes(value)).equal(false)
Expand Down
5 changes: 0 additions & 5 deletions tests/features/common/page-objects/commonPagesHeader.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ export default {
Alerts_Button: By.css('[data-testid="nav-link-alerts"] .nav-link__label'),
Alerts_Icon: By.css('[data-testid="nav-link-alerts"] svg'),
General_Info_Quick_Panel: By.css('.ml-app .navbar .navbar__body'),
Project_Quick_Actions_Instance: By.css('.project-details__details .link'),
Quick_actions_Active: By.css('#quick-actions'),
Project_Monitoring_First_Instance: By.css('.project-details__details .link'),
Project_Monitoring_Second_Instance: By.css('.project-overview-card:nth-of-type(3) .link:nth-of-type(4)'),
Project_Monitoring_Active: By.css('#monitor'),
Step_1_Button: By.css('.modal .modal__content .modal__body .wizard-steps .btn:nth-of-type(1)'),
Step_1_Button_text: By.css('.modal .modal__content .modal__body .wizard-steps .btn:nth-of-type(1) .data-ellipsis span'),
Step_2_Button: By.css('.modal .modal__content .modal__body .wizard-steps .btn:nth-of-type(2)'),
Expand Down
Loading