Open
Description
We have a few tests that validate our file upload function. It supports several extensions, including .zip, .json, and .kml. However, the build cannot seems to find the .kml file on Browserstack. It works fine locally.
This is how we load it
// Programatically upload the file
cy.fixture(`../fixtures/files/${data.fileName}`, null).as("file");
cy.get("#file-uploader").selectFile("@file", {
force: true,
});
and this is the error message printed in Browserstack log
A fixture file could not be found at any of the following paths: > cypress\fixtures\files\Polygon.kmz > cypress\fixtures\files\Polygon.kmz.[ext] Cypress looked for these file extensions at the provided path: > .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip Provide a path to an existing fixture file.
I'm wondering if this extension is blocked by Browserstack?
Here's the deps versions
cypress_version: 13.15.0
browserstack-cypress-cli: 1.32.2
Activity
Prakash21k commentedon Mar 18, 2025
BrowserStack supports files only with specific extensions mentioned here.
Hence, the .kmz/.kml files are ignored when the Cypress test suite is zipped for execution on the BrowserStack device.
akmalmzamri commentedon Mar 19, 2025
Thanks for the info @Prakash21k. Is there any way to include it with the current version of the CLI? We're working on a GIS app, so KMZ is heavily used in it