Skip to content

Commit 8b52dd8

Browse files
disable single runtime chunk plugin
1 parent 76c9245 commit 8b52dd8

File tree

4 files changed

+39
-46
lines changed

4 files changed

+39
-46
lines changed

bi-directional/app1/single-runtime-plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export default function () {
1414
return args;
1515
}
1616

17-
hostsRemote.entry = hostsRemote.entry.replace(
18-
'remoteEntry',
19-
`${hostName}_partial`,
20-
);
17+
// hostsRemote.entry = hostsRemote.entry.replace(
18+
// 'remoteEntry',
19+
// `${hostName}_partial`,
20+
// );
2121

2222
console.log('hostsRemote', hostsRemote);
2323
}

bi-directional/app2/single-runtime-plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export default function () {
1515
return args;
1616
}
1717

18-
hostsRemote.entry = hostsRemote.entry.replace(
19-
'remoteEntry',
20-
`${hostName}_partial`,
21-
);
18+
// hostsRemote.entry = hostsRemote.entry.replace(
19+
// 'remoteEntry',
20+
// `${hostName}_partial`,
21+
// );
2222

2323
console.log('hostsRemote', hostsRemote);
2424
}
Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,40 @@
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+
45
const basePage: BaseMethods = new BaseMethods();
56

67
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+
// },
2122
];
2223

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);
3530
});
3631

3732
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+
// }
4338
});
44-
});
4539
});
46-
},
47-
);
40+
});

bi-directional/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "pnpm --filter bi-directional_* run build",
1313
"serve": "pnpm --filter bi-directional_* run serve",
1414
"clean": "pnpm --filter bi-directional_* run reset",
15-
"e2e:ci": "pnpm build && pnpm serve & sleep 10 && npx cypress run --config-file ../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome"
15+
"e2e:ci": "pnpm build && pnpm serve & sleep 10 && wait-on http-get://localhost:3001 http-get://localhost:3002 && npx cypress run --config-file ../cypress-e2e/config/cypress.config.ts --config '{\"supportFile\": \"../cypress-e2e/support/e2e.ts\"}' --spec \"./e2e/*.cy.ts\" --browser=chrome --runner-ui --headed"
1616
},
1717
"devDependencies": {
1818
"concurrently": "8.2.2",

0 commit comments

Comments
 (0)