Add firefox support

This commit is contained in:
Arnaud 2024-10-11 16:37:52 +02:00
parent a7ca770d51
commit 1a91f0986b
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
2 changed files with 5 additions and 8 deletions

View File

@ -9,7 +9,6 @@ const __dirname = dirname(__filename);
test('upload one file', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('browse').click();
await page.locator('div').getByTestId("upload").setInputFiles([
path.join(__dirname, "assets", 'chatgpt.jpg'),
]);
@ -19,7 +18,6 @@ test('upload one file', async ({ page }) => {
test('multiple files upload', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('browse').click();
await page.locator('div').getByTestId("upload").setInputFiles([
path.join(__dirname, "assets", 'chatgpt.jpg'),
path.join(__dirname, "assets", 'mountain.jpeg'),
@ -57,9 +55,8 @@ test('drag and drop file', async ({ page }) => {
test('stop an upload display a message', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('browse').click();
const buffer = Buffer.alloc(10_000_000);
const buffer = Buffer.alloc(50_000_000);
await page.locator('div').getByTestId("upload").setInputFiles({
buffer,

View File

@ -43,10 +43,10 @@ export default defineConfig({
use: { ...devices['Desktop Chrome'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
// {
// name: 'webkit',