Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBPIH-6760 fix failing test #21

Merged
merged 5 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/config/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import UniqueIdentifier from '@/utils/UniqueIdentifier';
export enum USER_KEY {
MAIN = 'main',
ALTERNATIVE = 'alternative',
MANAGER = 'maganer',
MANAGER = 'manager',
}

export enum LOCATION_KEY {
Expand Down Expand Up @@ -115,11 +115,11 @@ class AppConfig {
RoleType.ROLE_PURCHASE_APPROVER,
]),
}),
maganer: new TestUserConfig({
manager: new TestUserConfig({
key: USER_KEY.MANAGER,
username: env.get('USER_MANAGER_USERNAME').required().asString(),
password: env.get('USER_MANAGER_PASSWORD').required().asString(),
storageFileName: '.auth-storage-ALT-USER.json',
storageFileName: '.auth-storage-MANAGER-USER.json',
requiredRoles: new Set([RoleType.ROLE_MANAGER]),
}),
};
Expand Down
2 changes: 1 addition & 1 deletion src/fixtures/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const test = baseTest.extend<Fixtures>({

managerUserContext: async ({ browser }, use) => {
const newCtx = await browser.newContext({
storageState: AppConfig.instance.users.maganer.storagePath,
storageState: AppConfig.instance.users.manager.storagePath,
});

await use(newCtx);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/inbound/createInbound/itemTemplate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ test.describe('Import template with data', () => {
await createInboundPage.addItemsStep.assertTableRows(ROWS);
});

test('Update existing values with template import', async ({
test.skip('Update existing values with template import', async ({
createInboundPage,
otherProductService,
mainProductService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.describe('Assert locations on origin select in inbound stock movement', ()
});
});

test('Assert depots and wards for maganers', async ({
test('Assert depots and wards for managers', async ({
managerUserContext,
}) => {
const managerUserPage = await managerUserContext.newPage();
Expand Down
Loading