summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2018-08-29 17:01:32 +0300
committerIttay Stern <ittay.stern@att.com>2019-02-18 18:35:30 +0200
commit6f900cc45d7dd7f97430812b86b5c1d1693c8ae3 (patch)
tree936005c364dc5a7264d6304d4777c3d83494db22 /vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts
parent67d99f816cc583643c35193197594cf78d8ce60a (diff)
merge from ecomp a88f0072 - Modern UI
Issue-ID: VID-378 Change-Id: Ibcb23dd27f550cf32ce2fe0239f0f496ae014ff6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts
new file mode 100644
index 000000000..98d39ff8e
--- /dev/null
+++ b/vid-webpack-master/cypress/integration/iFrames/welcomePage.e2e.ts
@@ -0,0 +1,40 @@
+///<reference path="../../../node_modules/cypress/types/index.d.ts"/> / <reference types="Cypress" />
+
+import {JsonBuilder} from "../../support/jsonBuilders/jsonBuilder";
+import {ServiceModel} from "../../support/jsonBuilders/models/service.model";
+
+describe('Welcome page', function () {
+ var jsonBuilderAndMock : JsonBuilder<ServiceModel> = new JsonBuilder<ServiceModel>();
+
+ //describe('Contact us', () => {
+
+ beforeEach(() => {
+ cy.login();
+ });
+
+ afterEach(() => {
+ cy.screenshot();
+ });
+
+ it(`verifying Contact Us link"`, function () {
+ cy.visit('/welcome.htm');
+ cy.get('A[href="mailto:portal@lists.onap.org"]').contains('Contact Us');
+ });
+
+ it(`verifying VID version"`, function () {
+
+ const APP_VERSION = "1902.1948";
+ cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/version.json').then((res) => {
+ jsonBuilderAndMock.basicJson(res,
+ Cypress.config('baseUrl') + '/version',
+ 200,
+ 0,
+ 'app_version');
+ });
+ cy.visit('/welcome.htm');
+ cy.getElementByDataTestsId('app-version').should("text", APP_VERSION);
+ });
+ // });
+ });
+
+