cypress test - assertion that use vidBaseUrl taken from cypress config 77/99977/1
authorEylon Malin <eylon.malin@intl.att.com>
Thu, 2 Jan 2020 12:08:31 +0000 (14:08 +0200)
committerEylon Malin <eylon.malin@intl.att.com>
Thu, 2 Jan 2020 12:08:31 +0000 (14:08 +0200)
Issue-ID: VID-740
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I7bbcaf06d965172c9a92c4e890b8941960d3df7c

vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts
vid-webpack-master/cypress/integration/iFrames/instantiationStatus.e2e.ts

index 7fb7ea5..73d3115 100644 (file)
@@ -125,7 +125,7 @@ describe('Template', () => {
     .getElementByDataTestsId('templateButton').click({force: true}) // Open template Modal
 
     const serviceModelId = '5c9e863f-2716-467b-8799-4a67f378dcaa';
-    const vidBaseUrl = `http://localhost:8080/vid/serviceModels.htm`;
+    const vidBaseUrl = `${Cypress.config().baseUrl}/serviceModels.htm`;
 
     cy.getElementByDataTestsId(`row-${templateJobIdFromE2EFile}`).click();
     cy.getElementByDataTestsId('LoadTemplateButton').click().setViewportToDefault();
index 342818a..cf727b5 100644 (file)
@@ -121,7 +121,7 @@ describe('Instantiation status', function () {
     //see cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json id:8
     const jobId = '5c2cd8e5-27d0-42e3-85a1-85db5eaba459';
     const serviceModelId = 'e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0';
-    const vidBaseUrl = `http://localhost:8080/vid/serviceModels.htm`;
+    const vidBaseUrl = `${Cypress.config().baseUrl}/serviceModels.htm`;
 
     cy.openIframe('app/ui/#/instantiationStatus');