mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
feat: excel import (#527)
* refactor: simplify excel import * chore: add external deepmerge utility * chore: create import map utilities * chore: increase size limits on uploads * style: small presentation tweaks * feat: resolve times on excel import, refs #508
This commit is contained in:
@@ -13,13 +13,13 @@ test('test project file upload', async ({ page }) => {
|
||||
// https://playwright.dev/docs/api/class-filechooser
|
||||
const [fileChooser] = await Promise.all([
|
||||
page.waitForEvent('filechooser'),
|
||||
await page.getByText('Click to upload Ontime project file').click(),
|
||||
await page.getByText('Click to select Ontime project or xlsx rundown').click(),
|
||||
]);
|
||||
|
||||
await fileChooser.setFiles(fileToUpload);
|
||||
|
||||
// there is only one step for normal imports
|
||||
await page.getByRole('button', { name: 'Import' }).click();
|
||||
await page.getByRole('button', { name: 'Close' }).click();
|
||||
|
||||
// asset test events
|
||||
await page.getByPlaceholder('Start').first().click();
|
||||
|
||||
Reference in New Issue
Block a user