@openmrs/esm-report-builder 0.1.1-pre.87 → 0.1.1-pre.88
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
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.88"}
|
package/e2e/core/global-setup.ts
CHANGED
|
@@ -10,7 +10,7 @@ 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
16
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
@@ -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() {
|