From 910ebff905e386cbc14422959591e83f5d90233b Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Sun, 26 Jan 2020 09:55:18 +0200 Subject: cypress test - ignore timezone while assert create date in template modal Issue-ID: VID-757 Signed-off-by: Eylon Malin Change-Id: I3ca8f8b21895423f467581b78699e46fc1cea6d0 --- .../cypress/integration/iFrames/instantiation.templates.modal.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-webpack-master/cypress/integration') diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts index dd51457e9..f76babe76 100644 --- a/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/instantiation.templates.modal.e2e.ts @@ -97,7 +97,7 @@ describe('Template', () => { // check table body row cy.getElementByDataTestsId(`userId-${templateJobIdFromE2EFile}`).contains('16807000'); - cy.getElementByDataTestsId(`createDate-${templateJobIdFromE2EFile}`).contains('2019-12-26 11:57:05'); + cy.getElementByDataTestsId(`createDate-${templateJobIdFromE2EFile}`).contains(/2019-12-26 [0-9]{1,2}:57:05/); //timezone insensitive cy.getElementByDataTestsId(`instanceName-${templateJobIdFromE2EFile}`).contains('SERVICE_NAME'); cy.getElementByDataTestsId(`instantiationStatus-${templateJobIdFromE2EFile}`).contains('IN_PROGRESS'); cy.getElementByDataTestsId(`summary-${templateJobIdFromE2EFile}`).contains('vnf: 1, vfModule: 2, volumeGroup: 1'); -- cgit 1.2.3-korg