|
1 |
| -import { BaseMethods } from '../../cypress-e2e/common/base'; |
2 |
| -import { baseSelectors } from '../../cypress-e2e/common/selectors'; |
3 |
| -import { Constants } from '../../cypress-e2e/fixtures/constants'; |
| 1 | +import {BaseMethods} from '../../cypress-e2e/common/base'; |
| 2 | +import {baseSelectors} from '../../cypress-e2e/common/selectors'; |
| 3 | +import {Constants} from '../../cypress-e2e/fixtures/constants'; |
| 4 | + |
4 | 5 | const basePage: BaseMethods = new BaseMethods();
|
5 | 6 |
|
6 | 7 | const appsData = [
|
7 |
| - { |
8 |
| - appName: Constants.commonConstantsData.biDirectional, |
9 |
| - appSubheader: Constants.commonConstantsData.commonCountAppNames.app1, |
10 |
| - app1Button: Constants.updatedConstantsData.commonAppWithButton.app1, |
11 |
| - app2Button: Constants.updatedConstantsData.commonAppWithButton.app2, |
12 |
| - host: 3001, |
13 |
| - }, |
14 |
| - { |
15 |
| - appName: Constants.commonConstantsData.biDirectional, |
16 |
| - appSubheader: Constants.commonConstantsData.commonCountAppNames.app2, |
17 |
| - app1Button: Constants.updatedConstantsData.commonAppWithButton.app1, |
18 |
| - app2Button: Constants.updatedConstantsData.commonAppWithButton.app2, |
19 |
| - host: 3002, |
20 |
| - }, |
| 8 | + { |
| 9 | + appName: Constants.commonConstantsData.biDirectional, |
| 10 | + appSubheader: Constants.commonConstantsData.commonCountAppNames.app1, |
| 11 | + app1Button: Constants.updatedConstantsData.commonAppWithButton.app1, |
| 12 | + app2Button: Constants.updatedConstantsData.commonAppWithButton.app2, |
| 13 | + host: 3001, |
| 14 | + }, |
| 15 | + // { |
| 16 | + // appName: Constants.commonConstantsData.biDirectional, |
| 17 | + // appSubheader: Constants.commonConstantsData.commonCountAppNames.app2, |
| 18 | + // app1Button: Constants.updatedConstantsData.commonAppWithButton.app1, |
| 19 | + // app2Button: Constants.updatedConstantsData.commonAppWithButton.app2, |
| 20 | + // host: 3002, |
| 21 | + // }, |
21 | 22 | ];
|
22 | 23 |
|
23 |
| -appsData.forEach( |
24 |
| - (property: { |
25 |
| - appName: string; |
26 |
| - appSubheader: string; |
27 |
| - app1Button: string; |
28 |
| - app2Button: string; |
29 |
| - host: number; |
30 |
| - }) => { |
31 |
| - describe('Bi Directional', () => { |
32 |
| - context(`Check ${property.appName} elements exists on the page`, () => { |
33 |
| - before(() => { |
34 |
| - cy.visit('http://localhost:' + property.host) |
| 24 | +describe('Bi Directional', () => { |
| 25 | + context(`Check App1 elements exists on the page`, () => { |
| 26 | + beforeEach(() => { |
| 27 | + cy.visit('http://localhost:3001'); |
| 28 | + cy.reload(); |
| 29 | + cy.wait(4090); |
35 | 30 | });
|
36 | 31 |
|
37 | 32 | it(`Check App1 and App2 elements`, () => {
|
38 |
| - if(property.host === 3001) { |
39 |
| - cy.contains('App 2 Button').should('exist'); |
40 |
| - } else { |
41 |
| - cy.contains('App 1 Button').should('exist'); |
42 |
| - } |
| 33 | + // if (property.host === 3001) { |
| 34 | + cy.contains('App 2 Button').should('exist'); |
| 35 | + // } else { |
| 36 | + // cy.contains('App 1 Button').should('exist'); |
| 37 | + // } |
43 | 38 | });
|
44 |
| - }); |
45 | 39 | });
|
46 |
| - }, |
47 |
| -); |
| 40 | +}); |
0 commit comments