mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
move ui and api to seperate packages and add npm actions for them
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { expect, Page } from '@playwright/test';
|
||||
import { PLAYWRIGHT_BASE_URL } from '../playwright/config';
|
||||
import { test } from '../playwright/fixtures';
|
||||
import { formatCents } from '../resources/js/utils/money';
|
||||
import { formatCents } from '../resources/js/packages/ui/src/utils/money';
|
||||
|
||||
async function goToProjectsOverview(page: Page) {
|
||||
await page.goto(PLAYWRIGHT_BASE_URL + '/projects');
|
||||
@@ -58,6 +58,6 @@ test('test that updating project member billable rate works for existing time en
|
||||
page
|
||||
.getByRole('row')
|
||||
.first()
|
||||
.getByText(formatCents(newBillableRate * 100))
|
||||
.getByText(formatCents(newBillableRate * 100, 'EUR'))
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { expect, Page } from '@playwright/test';
|
||||
import { PLAYWRIGHT_BASE_URL } from '../playwright/config';
|
||||
import { test } from '../playwright/fixtures';
|
||||
import { formatCents } from '../resources/js/utils/money';
|
||||
import { formatCents } from '../resources/js/packages/ui/src/utils/money';
|
||||
|
||||
async function goToProjectsOverview(page: Page) {
|
||||
await page.goto(PLAYWRIGHT_BASE_URL + '/projects');
|
||||
@@ -131,7 +131,7 @@ test('test that updating billable rate works with existing time entries', async
|
||||
page
|
||||
.getByRole('row')
|
||||
.first()
|
||||
.getByText(formatCents(newBillableRate * 100))
|
||||
.getByText(formatCents(newBillableRate * 100, 'EUR'))
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
|
||||
@@ -285,3 +285,5 @@ test('test that adding a new tag when the timer is running', async ({
|
||||
// test billable toggle
|
||||
|
||||
// TODO: Test that project can be created in the time tracker row
|
||||
|
||||
// Add Test that time tracker starts on enter with description
|
||||
|
||||
Reference in New Issue
Block a user