diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-10-23 17:10:52 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-10-24 08:25:01 +0000 |
commit | 607ea3dac27af31e3c8571b4f170dc7fd5c3b3b1 (patch) | |
tree | 357112f71483376c0965a87a0a4e93cb1facca98 /vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts | |
parent | d5ee5305be7f747aaddd3493485d6f029f72817b (diff) |
Cypress>=3.3.1 readFile() does not expect a relative file-path starting with /
See:
https://github.com/cypress-io/cypress/issues/4352#issuecomment-507963062
Issue-ID: VID-687
Change-Id: I4f3292e80d22d217d9bd33c685766efd5a8f4d8f
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts index cec915a91..5857e1ac0 100644 --- a/vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/resume.e2e.ts @@ -13,7 +13,7 @@ describe('Resume tests', function () { let jsonBuilderAAISubDetailsModel: JsonBuilder<AAISubDetailsModel> = new JsonBuilder<AAISubDetailsModel>(); let jsonBuilderAaiServiceInstances: JsonBuilder<AaiServiceInstancesModel> = new JsonBuilder<AaiServiceInstancesModel>(); beforeEach(() => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/serviceE2E.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/serviceE2E.json').then((res) => { jsonBuilderAAIService.basicJson( res, Cypress.config('baseUrl') + "/rest/models/services/**", @@ -22,7 +22,7 @@ describe('Resume tests', function () { }); - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubViewEditForServiceWithSomeVFModuleE2E.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubViewEditForServiceWithSomeVFModuleE2E.json').then((res) => { jsonBuilderAAISubViewEditModel.basicJson( res, Cypress.config('baseUrl') + "/aai_sub_viewedit/**", @@ -31,7 +31,7 @@ describe('Resume tests', function () { "aai-sub-view-edit") }); - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubDetailsE2E.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiSubDetailsE2E.json').then((res) => { jsonBuilderAAISubDetailsModel.basicJson( res, Cypress.config('baseUrl') + "/aai_sub_details/**", @@ -40,7 +40,7 @@ describe('Resume tests', function () { "aai-sub-details") }); - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiServiceInstancesE2E.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/aaiServiceInstancesE2E.json').then((res) => { jsonBuilderAaiServiceInstances.basicJson( res, Cypress.config('baseUrl') + "/search_service_instances**", @@ -76,7 +76,7 @@ describe('Resume tests', function () { it(`Resume Defect 710619 - with flag FLAG_1810_CR_SOFT_DELETE_ALACARTE_VF_MODULE is OFF`, function () { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/flags.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/flags.json').then((res) => { cy.server() .route({ method: 'GET', @@ -108,7 +108,7 @@ describe('Resume tests', function () { .getElementByDataTestsId('tenant').should('be.visible').select("bae71557c5bb4d5aac6743a4e5f1d054"); cy.getElementByDataTestsId('confirmResumeDeleteButton').not('.button--inactive').click().then(()=> { cy.wait('@actualResumeCall').then(xhr => { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/defect710619/expectedResumeWithVGResults.json').then((expectedResult) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/defect710619/expectedResumeWithVGResults.json').then((expectedResult) => { cy.deepCompare(xhr.request.body, expectedResult); }); }); |