mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
Url presets (#807)
This commit is contained in:
@@ -13,19 +13,19 @@ test('test project file upload', async ({ page }) => {
|
||||
// workaround to upload file on hidden input
|
||||
// https://playwright.dev/docs/api/class-filechooser
|
||||
const fileChooserPromise = page.waitForEvent('filechooser');
|
||||
await page.getByRole('button', { name: 'Import' }).click();
|
||||
await page.getByRole('button', { name: 'Import', exact: true }).click();
|
||||
const fileChooser = await fileChooserPromise;
|
||||
await fileChooser.setFiles(fileToUpload);
|
||||
|
||||
await page.getByRole('button', { name: 'close' }).click();
|
||||
|
||||
// asset test events
|
||||
const firstTitle = page.getByTestId('entry-1').getByTestId('block__title')
|
||||
const firstTitle = page.getByTestId('entry-1').getByTestId('block__title');
|
||||
await expect(firstTitle).toHaveValue('Albania');
|
||||
|
||||
const secondTitle = page.getByTestId('entry-2').getByTestId('block__title')
|
||||
const secondTitle = page.getByTestId('entry-2').getByTestId('block__title');
|
||||
await expect(secondTitle).toHaveValue('Latvia');
|
||||
|
||||
const thirdTitle = page.getByTestId('entry-3').getByTestId('block__title')
|
||||
const thirdTitle = page.getByTestId('entry-3').getByTestId('block__title');
|
||||
await expect(thirdTitle).toHaveValue('Lithuania');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user