mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 05:00:58 +00:00
[Pricing] Add option to convert received items currency (#8970)
* Add new global setting * Convert to base currency on receipt * Fix total price rendering in PO table * Fix for tasks.py * Update .gitignore - Ignore auto-generated files * Update docs Improved documentation for pricing/currency support * Updates * Fix caching for default currency - Now managed better by session caching * Add unit test for new feature * Playwright test fixes * Validate copying of media files * Validate media files * Adjust playwright setup * Allow multiple attempts to fetch release information * Tweak unit tests * Revert changes to .gitignore file - Just trying stuff at this point * Add debug msg * Try hard-coded paths * Remove debug prints * Abs path for database * More debug * Fix typos * Revert change to db name * Remove debug statements (again) * Cleanup playwright tests * More test tweaks --------- Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
@ -95,10 +95,14 @@ test('Settings - Admin', async ({ page }) => {
|
||||
await page.getByLabel('row-action-menu-0').click();
|
||||
await page.getByRole('menuitem', { name: 'Edit' }).click();
|
||||
await expect(page.getByLabel('text-field-name')).toHaveValue('Room');
|
||||
await expect(page.getByLabel('text-field-description')).toHaveValue('A room');
|
||||
await page.getByLabel('text-field-name').fill('Large Room');
|
||||
await page.waitForTimeout(500);
|
||||
await page.getByLabel('text-field-description').fill('A large room');
|
||||
|
||||
// Toggle the "description" field
|
||||
const oldDescription = await page
|
||||
.getByLabel('text-field-description')
|
||||
.inputValue();
|
||||
const newDescription = `${oldDescription} (edited)`;
|
||||
|
||||
await page.getByLabel('text-field-description').fill(newDescription);
|
||||
await page.waitForTimeout(500);
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
|
||||
@ -114,13 +118,9 @@ test('Settings - Admin', async ({ page }) => {
|
||||
// Edit first item again (revert values)
|
||||
await page.getByLabel('row-action-menu-0').click();
|
||||
await page.getByRole('menuitem', { name: 'Edit' }).click();
|
||||
await expect(page.getByLabel('text-field-name')).toHaveValue('Large Room');
|
||||
await expect(page.getByLabel('text-field-description')).toHaveValue(
|
||||
'A large room'
|
||||
);
|
||||
await page.getByLabel('text-field-name').fill('Room');
|
||||
await page.waitForTimeout(500);
|
||||
await page.getByLabel('text-field-description').fill('A room');
|
||||
await page.getByLabel('text-field-description').fill(oldDescription);
|
||||
await page.waitForTimeout(500);
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
});
|
||||
|
Reference in New Issue
Block a user