summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-06-03 14:16:22 +0300
committerIttay Stern <ittay.stern@att.com>2020-06-03 16:10:47 +0300
commit1a247cc4b87b7bf32489f9524062b4df361fae79 (patch)
treef267d68c5097231a03f9b32b4ee58ca6253e8f94 /vid-webpack-master/cypress
parent97710dea29b38933d1ee5d5fea0b6984be2b0e38 (diff)
remove import and add force in order to fix cypress
Issue-ID: VID-821 Change-Id: I70d6d0acb90d06f4ba9d356098ad2052c5195464 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.ts30
1 files changed, 10 insertions, 20 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
index 6fdbc9d87..094ea83d4 100644
--- a/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts
@@ -4,16 +4,6 @@
import {JsonBuilder} from '../../support/jsonBuilders/jsonBuilder';
import {AsyncInstantiationModel} from '../../support/jsonBuilders/models/asyncInstantiation.model';
-export let PENDING : string = "pending";
-export let INPROGRESS : string = "in_progress";
-export let PAUSE : string = "pause";
-export let X_O : string = "x-circle-o";
-export let SUCCESS_CIRCLE : string = "success-circle-o";
-export let STOPPED : string = "stop";
-export let COMPLETED_WITH_ERRORS : string = "success_with_warning";
-export let PAUSE_UPON_COMPLETION : string = "stopped-upon-success";
-export let UNKNOWN : string = "question-mark-circle-o";
-
describe('Instantiation status', function () {
var jsonBuilderInstantiationBuilder : JsonBuilder<AsyncInstantiationModel> = new JsonBuilder<AsyncInstantiationModel>();
var asyncRes: Array<any>;
@@ -76,23 +66,23 @@ describe('Instantiation status', function () {
function getJobIconClass(status: string) : string{
switch(`${status}`.toUpperCase()) {
case 'PENDING' :
- return PENDING;
+ return "pending";
case 'IN_PROGRESS' :
- return INPROGRESS;
+ return "in_progress";
case 'PAUSED' :
- return PAUSE;
+ return "pause";
case 'FAILED' :
- return X_O;
+ return "x-circle-o";
case 'COMPLETED' :
- return SUCCESS_CIRCLE;
+ return "success-circle-o";
case 'STOPPED' :
- return STOPPED;
+ return "stop";
case 'COMPLETED_WITH_ERRORS' :
- return COMPLETED_WITH_ERRORS;
+ return "success_with_warning";
case 'COMPLETED_AND_PAUSED' :
- return PAUSE_UPON_COMPLETION;
+ return "stopped-upon-success";
default:
- return UNKNOWN;
+ return "question-mark-circle-o";
}
}
@@ -114,7 +104,7 @@ describe('Instantiation status', function () {
function clickOnTitleAndThenOnMenuWithJobId(jobId: string) {
cy.getElementByDataTestsId("instantiation-status-title").click();
- cy.get('#' + jobId).find('.menu-div').click();
+ cy.get('#' + jobId).find('.menu-div').click({force: true});
}
it('should disabled correct menu items', function () {