aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts
diff options
context:
space:
mode:
authorAlexey Sandler <alexey.sandler@intl.att.com>2020-04-06 11:31:37 +0300
committerAlexey Sandler <alexey.sandler@intl.att.com>2020-04-06 21:30:49 +0300
commit5a5af80b9f6475b44de3e95ebca8f7fb05d75272 (patch)
tree0ba5dbf79b216bf6497bb9b6789dbd8be0bb4df4 /vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts
parentf6204c8b0f9b4f778419c16400b8a431f5797beb (diff)
fix test: wait for aai_get_newest_model_version request been sent
this fix resolve the issue that occasionally VFM upgrade tests failed due to aai_get_newest_model_version_by_invariant request not sent Issue-ID: VID-647 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com> Change-Id: I586677e6003e42cc259543d2902c17b536a65799 Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts15
1 files changed, 8 insertions, 7 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts
index ac36f6771..04c1c55ef 100644
--- a/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts
@@ -175,6 +175,8 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.openIframe(`app/ui/#/servicePlanning/EDIT?serviceModelId=${serviceModelId}&subscriberId=${subscriberId}&serviceType=${serviceType}&serviceInstanceId=${serviceInstanceId}`);
+ cy.wait('@newestModelVersion2');
+
deleteTheVfm(`node-c449aaf8-2467-41a9-9015-730ab48ca19b-mdns012220200..Mdns01222020..dns_az_01..module-1`);
upgradeTheVFM(`node-04b21d26-9780-4956-8329-b22b049329f4-xbitestmodulereplace0..XbiTestModuleReplace..base_ocg..module-0`, false);
@@ -185,10 +187,10 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.getDrawingBoardDeployBtn().click();
cy.wait('@expectedPostAsyncInstantiation').then(xhr => {
- cy.readFile('../vid-app-common/src/test/resources/payload_jsons/vfmodule/delete_vfmodule_expected_bulk.json').then((expectedResult) => {
- cy.deepCompare(xhr.request.body, expectedResult);
- });
- });
+ cy.readFile('../vid-app-common/src/test/resources/payload_jsons/vfmodule/delete_vfmodule_expected_bulk.json').then((expectedResult) => {
+ cy.deepCompare(xhr.request.body, expectedResult);
+ });
+ });
});
it(`Upgrade a VFModule: another case e2e`, function () {
@@ -223,6 +225,7 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.openIframe(`app/ui/#/servicePlanning/EDIT?serviceModelId=${serviceModelId}&subscriberId=${subscriberId}&serviceType=${serviceType}&serviceInstanceId=${serviceInstanceId}`);
+ cy.wait('@newestModelVersion2');
upgradeTheVFM('node-04b21d26-9780-4956-8329-b22b049329f4-xbitestmodulereplace0..XbiTestModuleReplace..base_ocg..module-0', false);
mockAsyncBulkResponse();
@@ -233,7 +236,6 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.deepCompare(xhr.request.body, expectedResult);
});
});
-
});
it(`Upgrade a VFModule: upgrade vfmodule when upgraded already service, vnf and brother vfmodule e2e`, function () {
@@ -267,6 +269,7 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.openIframe(`app/ui/#/servicePlanning/EDIT?serviceModelId=${serviceModelId}&subscriberId=${subscriberId}&serviceType=${serviceType}&serviceInstanceId=${serviceInstanceId}`);
+ cy.wait('@newestModelVersion2');
upgradeTheVFM('node-3412fe1f-e103-4777-90c0-f66d888f4bed-mdns012220200..Mdns01222020..dns_az_01..module-1', true);
mockAsyncBulkResponse();
@@ -277,9 +280,7 @@ describe('View Edit Page: Upgrade VFModule', function () {
cy.deepCompare(xhr.request.body, expectedResult);
});
});
-
});
-
});