diff options
author | Alexey Sandler <alexey.sandler@intl.att.com> | 2019-12-16 10:18:41 +0200 |
---|---|---|
committer | Alexey Sandler <alexey.sandler@intl.att.com> | 2019-12-16 12:35:49 +0200 |
commit | 12ceb440bd3753e09fb21a5b14038a01cc530fa7 (patch) | |
tree | adccad050dbd914258fa2a67ea73861f2d9c541e /vid-webpack-master/cypress/support/steps/genericForm | |
parent | 73e153974e4f5a7dc4a60f5612fd30ca6a47dee0 (diff) |
Allow edit service button to be shown on service context menu in recreate mode.
Issue-ID: VID-724
Change-Id: Ife26ef3278a37555a80fe4f3e8afa56666ca81ba
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Diffstat (limited to 'vid-webpack-master/cypress/support/steps/genericForm')
-rw-r--r-- | vid-webpack-master/cypress/support/steps/genericForm/genericFormAction.steps.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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); |