diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-12-16 11:06:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-16 11:06:00 +0000 |
commit | 4a42937926e558e61364998c626b86e1e56708e6 (patch) | |
tree | 6f97ffffadcb1dd64ff971250bd9153c44f40cfd /vid-webpack-master/cypress/support/steps | |
parent | d5a18e91a17140e956b453b00fe6bf9de1be9f44 (diff) | |
parent | 12ceb440bd3753e09fb21a5b14038a01cc530fa7 (diff) |
Merge "Allow edit service button to be shown on service context menu in recreate mode."
Diffstat (limited to 'vid-webpack-master/cypress/support/steps')
-rw-r--r-- | vid-webpack-master/cypress/support/steps/drawingBoard/drawingBoardModel.steps.ts | 1 | ||||
-rw-r--r-- | vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/support/steps/drawingBoard/drawingBoardModel.steps.ts b/vid-webpack-master/cypress/support/steps/drawingBoard/drawingBoardModel.steps.ts index 7854899f8..ae3bf6da7 100644 --- a/vid-webpack-master/cypress/support/steps/drawingBoard/drawingBoardModel.steps.ts +++ b/vid-webpack-master/cypress/support/steps/drawingBoard/drawingBoardModel.steps.ts @@ -18,6 +18,7 @@ function getDrawingBoardDeployBtn() : Chainable<any> { return cy.getElementByDataTestsId('deployBtn'); } + Cypress.Commands.add('drawingBoardPressAddButtonByElementName', drawingBoardPressAddButtonByElementName); Cypress.Commands.add('drawingBoardNumberOfExistingElementsShouldContains', drawingBoardNumberOfExistingElementsShouldContains); Cypress.Commands.add('getDrawingBoardDeployBtn', getDrawingBoardDeployBtn); diff --git a/vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts b/vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts index 00a945711..115173632 100644 --- a/vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts +++ b/vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts @@ -2,6 +2,7 @@ declare namespace Cypress { interface Chainable { genericFormSubmitForm: typeof genericFormSubmitForm selectPlatformValue: typeof selectPlatformValue + checkPlatformValue: typeof checkPlatformValue } } @@ -12,6 +13,9 @@ function selectPlatformValue(selectOption: string) { cy.getElementByDataTestsId("multi-selectPlatform").get('.c-btn').click({force: true}); } +function checkPlatformValue(value: string){ + return cy.getElementByDataTestsId("multi-selectPlatform").should("contain", value) +} function genericFormSubmitForm(): Chainable<any> { return cy.getElementByDataTestsId('form-set').click({force: true}); @@ -20,3 +24,4 @@ function genericFormSubmitForm(): Chainable<any> { Cypress.Commands.add('genericFormSubmitForm', genericFormSubmitForm); Cypress.Commands.add('selectPlatformValue', selectPlatformValue); +Cypress.Commands.add('checkPlatformValue', checkPlatformValue); |