Skip to content

Our .KMZ fixture files are not available in Browserstack build #977

Open
@akmalmzamri

Description

@akmalmzamri

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

Prakash21k commented on Mar 18, 2025

@Prakash21k

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

akmalmzamri commented on Mar 19, 2025

@akmalmzamri
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @akmalmzamri@Prakash21k

        Issue actions

          Our .KMZ fixture files are not available in Browserstack build · Issue #977 · browserstack/browserstack-cypress-cli