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:
Carlos Valente
2023-11-11 14:28:43 +01:00
committed by GitHub
parent 0ce3449083
commit 45fe669f0a
61 changed files with 1905 additions and 685 deletions
+2 -2
View File
@@ -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();