-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e721b7
commit 18ab08b
Showing
454 changed files
with
6,621 additions
and
9,710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./test"; | ||
export * from './test'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./login-page"; | ||
export * from './login-page'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,38 @@ | ||
import { test } from "../core"; | ||
import { expect } from "@playwright/test"; | ||
import { LoginPage } from "../pages"; | ||
import { test } from '../core'; | ||
import { expect } from '@playwright/test'; | ||
import { LoginPage } from '../pages'; | ||
|
||
test("Should login as Admin", async ({ page }) => { | ||
test('Should login as Admin', async ({ page }) => { | ||
const loginPage = new LoginPage(page); | ||
|
||
await test.step("When I goto the login page", async () => { | ||
await test.step('When I goto the login page', async () => { | ||
await loginPage.goto(); | ||
}); | ||
|
||
await test.step("And I enter the username", async () => { | ||
await page | ||
.locator("#username") | ||
.fill(`${process.env.E2E_USER_ADMIN_USERNAME}`); | ||
await page.getByText("Continue").click(); | ||
await test.step('And I enter the username', async () => { | ||
await page.locator('#username').fill(`${process.env.E2E_USER_ADMIN_USERNAME}`); | ||
await page.getByText('Continue').click(); | ||
}); | ||
|
||
await test.step("And I enter the password", async () => { | ||
await page | ||
.locator("#password") | ||
.fill(`${process.env.E2E_USER_ADMIN_PASSWORD}`); | ||
await test.step('And I enter the password', async () => { | ||
await page.locator('#password').fill(`${process.env.E2E_USER_ADMIN_PASSWORD}`); | ||
}); | ||
|
||
await test.step("And I click login buttion", async () => { | ||
await page.getByText("Log in").click(); | ||
await test.step('And I click login buttion', async () => { | ||
await page.getByText('Log in').click(); | ||
}); | ||
|
||
await test.step("And I choose the location", async () => { | ||
await page.getByText("Outpatient clinic").click(); | ||
await page.getByText("Confirm").click(); | ||
await test.step('And I choose the location', async () => { | ||
await page.getByText('Outpatient clinic').click(); | ||
await page.getByText('Confirm').click(); | ||
}); | ||
|
||
await test.step("Then I should be logged in", async () => { | ||
await test.step('Then I should be logged in', async () => { | ||
await expect(page).toHaveURL(`${process.env.E2E_BASE_URL}/spa/home`); | ||
}); | ||
|
||
await test.step("Then I logged out", async () => { | ||
await page.getByRole("button", { name: "Users" }).click(); | ||
await page.getByText("Logout").click(); | ||
await test.step('Then I logged out', async () => { | ||
await page.getByRole('button', { name: 'Users' }).click(); | ||
await page.getByText('Logout').click(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
module.exports = { | ||
transform: { | ||
"\\.tsx?$": ["@swc/jest"], | ||
'\\.tsx?$': ['@swc/jest'], | ||
}, | ||
setupFiles: ["<rootDir>/src/setup-tests.tsx"], | ||
setupFiles: ['<rootDir>/src/setup-tests.tsx'], | ||
moduleNameMapper: { | ||
"\\.(css)$": "identity-obj-proxy", | ||
"@openmrs/esm-framework": "@openmrs/esm-framework/mock.tsx", | ||
'\\.(css)$': 'identity-obj-proxy', | ||
'@openmrs/esm-framework': '@openmrs/esm-framework/mock.tsx', | ||
}, | ||
globals: { | ||
System: { | ||
Node: null, | ||
}, | ||
}, | ||
testEnvironment: "jsdom", | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
url: "http://localhost/", | ||
url: 'http://localhost/', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/apps/esm-devtools-app/src/devtools/devtools-popup.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/apps/esm-devtools-app/src/devtools/devtools.component.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { getAsyncLifecycle } from "@openmrs/esm-framework"; | ||
import { getAsyncLifecycle } from '@openmrs/esm-framework'; | ||
|
||
export const importTranslation = () => Promise.resolve(); | ||
|
||
const options = { | ||
featureName: "devtools", | ||
moduleName: "@openmrs/esm-devtools-app", | ||
featureName: 'devtools', | ||
moduleName: '@openmrs/esm-devtools-app', | ||
}; | ||
|
||
export const devtools = getAsyncLifecycle( | ||
() => import("./devtools/devtools.component"), | ||
options | ||
); | ||
export const devtools = getAsyncLifecycle(() => import('./devtools/devtools.component'), options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("openmrs/default-webpack-config"); | ||
module.exports = require('openmrs/default-webpack-config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
module.exports = { | ||
transform: { | ||
"^.+\\.tsx?$": ["@swc/jest"], | ||
'^.+\\.tsx?$': ['@swc/jest'], | ||
}, | ||
globals: { | ||
System: {}, | ||
}, | ||
moduleNameMapper: { | ||
"lodash-es": "lodash", | ||
"\\.(s?css)$": "identity-obj-proxy", | ||
"@openmrs/esm-framework": "@openmrs/esm-framework/mock.tsx", | ||
dexie: require.resolve("dexie"), | ||
'lodash-es': 'lodash', | ||
'\\.(s?css)$': 'identity-obj-proxy', | ||
'@openmrs/esm-framework': '@openmrs/esm-framework/mock.tsx', | ||
dexie: require.resolve('dexie'), | ||
}, | ||
testEnvironment: "jsdom", | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
url: "http://localhost/", | ||
url: 'http://localhost/', | ||
}, | ||
}; |
Oops, something went wrong.