summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-06-04 08:41:20 +0300
committerIttay Stern <ittay.stern@att.com>2020-06-04 08:41:20 +0300
commit60e246814415ee1daf838db78aff8afd53ce46f5 (patch)
treea10e04cbd749392573fe9f61eec7b5449fbad39f /vid-webpack-master/cypress
parent1a247cc4b87b7bf32489f9524062b4df361fae79 (diff)
test COMPLETED_AND_PAUSED should have correct menu items
Issue-ID: VID-821 Change-Id: I8d5301a9534345d83b06f33a9d2daca45a613922 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts16
1 files changed, 12 insertions, 4 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
index 094ea83d4..b54ed0e66 100644
--- a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
@@ -102,6 +102,10 @@ describe('Instantiation status', function () {
return cy.get('.dropdown-menu').find('.disabled').find(`[data-tests-id='${testId}']`);
}
+ function getDropDownItemByDataTestId(testId:String) {
+ return cy.get('.dropdown-menu').find(`[data-tests-id='${testId}']`);
+ }
+
function clickOnTitleAndThenOnMenuWithJobId(jobId: string) {
cy.getElementByDataTestsId("instantiation-status-title").click();
cy.get('#' + jobId).find('.menu-div').click({force: true});
@@ -141,13 +145,17 @@ describe('Instantiation status', function () {
getDisabledDropDownItemByDataTestId('context-menu-hide').should('not.exist');
getDisabledDropDownItemByDataTestId('context-menu-audit-info').should('not.exist');
getDisabledDropDownItemByDataTestId(contextMenuCreateAnotherOne).should('exist');
+ });
+
+ it('COMPLETED_AND_PAUSED should have correct menu items', function () {
+ cy.openIframe('app/ui/#/instantiationStatus');
//COMPLETED_AND_PAUSED
clickOnTitleAndThenOnMenuWithJobId('850dc7d2-5240-437f-9bcd-b1ed7dc339d9');
- getDisabledDropDownItemByDataTestId('context-menu-retry').should('exist');
- getDisabledDropDownItemByDataTestId('context-menu-open').should('exist');
- getDisabledDropDownItemByDataTestId('context-menu-audit-info').should('exist');
- getDisabledDropDownItemByDataTestId(contextMenuCreateAnotherOne).should('exist');
+ getDropDownItemByDataTestId('context-menu-retry').should('exist');
+ getDropDownItemByDataTestId('context-menu-open').should('exist');
+ getDropDownItemByDataTestId('context-menu-audit-info').should('exist');
+ getDropDownItemByDataTestId(contextMenuCreateAnotherOne).should('exist');
});
it('clicking on create another one item, go to expected url', function () {