@openmrs/esm-report-builder 0.1.1-pre.87 → 0.1.1-pre.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes.json +1 -1
- package/e2e/core/global-setup.ts +3 -3
- package/e2e/pages/app-shell.page.ts +2 -1
- package/e2e/pages/etl-sources.page.ts +2 -1
- package/e2e/pages/report-sections.page.ts +2 -1
- package/e2e/support/github/Dockerfile +8 -3
- package/e2e/support/github/spa-assemble-config.json +0 -3
- package/package.json +1 -1
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"root","route":"report-builder","online":true,"offline":false,"order":1}],"extensions":[{"name":"system-administration-report-builder-card-link","slot":"system-admin-page-card-link-slot","component":"reportBuilderAdminLink","online":true,"offline":false,"privileges":"Task: reportbuilder.report.view"},{"component":"confirmModal","name":"confirm-modal","online":true,"offline":true}],"version":"0.1.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"root","route":"report-builder","online":true,"offline":false,"order":1}],"extensions":[{"name":"system-administration-report-builder-card-link","slot":"system-admin-page-card-link-slot","component":"reportBuilderAdminLink","online":true,"offline":false,"privileges":"Task: reportbuilder.report.view"},{"component":"confirmModal","name":"confirm-modal","online":true,"offline":true}],"version":"0.1.1-pre.89"}
|
package/e2e/core/global-setup.ts
CHANGED
|
@@ -10,12 +10,12 @@ async function globalSetup(config: FullConfig) {
|
|
|
10
10
|
const requestContext = await request.newContext({ baseURL: e2eBaseUrl });
|
|
11
11
|
|
|
12
12
|
const authHeader = `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`;
|
|
13
|
-
const response = await requestContext.post(
|
|
13
|
+
const response = await requestContext.post(`${e2eBaseUrl}/ws/rest/v1/session`, {
|
|
14
14
|
headers: {
|
|
15
15
|
Authorization: authHeader,
|
|
16
|
-
'Content-Type': 'application/
|
|
16
|
+
'Content-Type': 'application/json',
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
data: {
|
|
19
19
|
sessionLocation: loginLocation,
|
|
20
20
|
},
|
|
21
21
|
failOnStatusCode: false,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
|
+
import { playwrightBaseUrl } from '../core/env';
|
|
2
3
|
|
|
3
4
|
export class AppShellPage {
|
|
4
5
|
constructor(private readonly page: Page) {}
|
|
5
6
|
|
|
6
7
|
async goto(path = '/') {
|
|
7
|
-
await this.page.goto(path);
|
|
8
|
+
await this.page.goto(`${playwrightBaseUrl}${path}`);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
async openHome() {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
2
|
import { expect } from '@playwright/test';
|
|
3
|
+
import { playwrightBaseUrl } from '../core/env';
|
|
3
4
|
|
|
4
5
|
export class ETLSourcesPage {
|
|
5
6
|
constructor(private readonly page: Page) {}
|
|
6
7
|
|
|
7
8
|
async goto() {
|
|
8
|
-
await this.page.goto(
|
|
9
|
+
await this.page.goto(`${playwrightBaseUrl}/admin/etl-sources`);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
async expectLoaded() {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Page } from '@playwright/test';
|
|
2
2
|
import { expect } from '@playwright/test';
|
|
3
|
+
import { playwrightBaseUrl } from '../core/env';
|
|
3
4
|
|
|
4
5
|
export class ReportSectionsPage {
|
|
5
6
|
constructor(private readonly page: Page) {}
|
|
6
7
|
|
|
7
8
|
async goto() {
|
|
8
|
-
await this.page.goto(
|
|
9
|
+
await this.page.goto(`${playwrightBaseUrl}/sections`);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
async expectLoaded() {
|
|
@@ -10,11 +10,16 @@ RUN corepack enable && yarn install --immutable
|
|
|
10
10
|
|
|
11
11
|
COPY . .
|
|
12
12
|
|
|
13
|
-
# Build
|
|
13
|
+
# Build and pack this module
|
|
14
14
|
RUN yarn build
|
|
15
15
|
RUN yarn pack -o /app/_openmrs_esm_report_builder.tgz
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
|
|
17
|
+
# Assemble the SPA from the manifest's default module set plus this module.
|
|
18
|
+
# Do not run `openmrs build` afterwards: rebuilding the shell here decouples it
|
|
19
|
+
# from the manifest-pinned modules and breaks module federation.
|
|
20
|
+
RUN npm_config_legacy_peer_deps=true npm install -g openmrs@next
|
|
21
|
+
ARG CACHE_BUST
|
|
22
|
+
RUN npm_config_legacy_peer_deps=true openmrs assemble --manifest --mode config --config e2e/support/github/spa-assemble-config.json --target /app/spa
|
|
18
23
|
|
|
19
24
|
FROM openmrs/openmrs-reference-application-3-frontend:nightly
|
|
20
25
|
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"frontendModules": {
|
|
3
|
-
"@openmrs/esm-login-app": "next",
|
|
4
3
|
"@openmrs/esm-primary-navigation-app": "next",
|
|
5
|
-
"@openmrs/esm-home-app": "next",
|
|
6
|
-
"@openmrs/esm-system-admin-app": "next",
|
|
7
4
|
"@openmrs/esm-report-builder": "file:/app/_openmrs_esm_report_builder.tgz"
|
|
8
5
|
}
|
|
9
6
|
}
|