Files
baserow/e2e-tests/tests/database/file_field.spec.ts
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00

40 lines
1.1 KiB
TypeScript

import { expect, test } from "../baserowTest";
import { TablePage } from "../../pages/database/tablePage";
test.describe("File field tests", () => {
test.beforeEach(async ({ workspacePage }) => {
await workspacePage.goto();
});
test.skip("User can upload an image and download it again @upload", async ({
page,
workspacePage,
}) => {
// Click "Add new" > "From template".
const templateModal =
await workspacePage.sidebar.openCreateAppFromTemplateModal();
await templateModal.waitUntilLoaded();
const templatesLoadingSpinner = templateModal.getLoadingSpinner();
await expect(
templatesLoadingSpinner,
"Checking that the templates modal spinner is hidden."
).toBeHidden();
await templateModal.clickUseThisTemplateButton();
await workspacePage.sidebar.selectDatabaseAndTableByName(
"Project Tracker",
"Projects"
);
const tablePage = new TablePage(page);
await tablePage.addNewFieldOfType("File");
const imageWidth =
await tablePage.uploadImageToFirstFileFieldCellAndGetWidth();
expect(imageWidth).toBeGreaterThan(0);
});
});