Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push a xlsx file to use in test #897

Open
angeliski opened this issue Feb 22, 2024 · 3 comments
Open

Unable to push a xlsx file to use in test #897

angeliski opened this issue Feb 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@angeliski
Copy link

Description

We are updating a test from synthetics beta version, but now when the push option creates a new bundle, the XLSX file is not included in the zip.
So our tests fail because we don't have the file to import.

@vigneshshanmugam
Copy link
Member

Could you provide more details? Share an example journey how it looks like, so we can reproduce. Thanks.

@vigneshshanmugam vigneshshanmugam added the question Further information is requested label Feb 22, 2024
@angeliski
Copy link
Author

Sure, more info below:

I created a project from scratch and added this test:

import { journey, expect, step } from '@elastic/synthetics'

journey({ name: 'import'}, options => {
  const { page } = options

  step('Go', async () => {
    await page.goto('https://www.file.io/');
    await page.setInputFiles('input[type=file]', 'info-email.xlsx');
    await expect(page.locator('#gatsby-focus-wrapper')).toContainText('Your file is ready to share!');
  })
})

Create a file called info-email.xlsx in the root to upload. The content doesn't really matter in this case.
image

Running from my pc:
image

But after push:

image

@vigneshshanmugam
Copy link
Member

Apologies for the delay, Unfortunately the bundling phase can only bundle all the relevant JS/TS files and does not take any other extension as of now which is why you are seeing the journey fail. We would need to add support for XSLT extensions/loaders to get pushed when used as project monitors.

@vigneshshanmugam vigneshshanmugam added enhancement New feature or request and removed question Further information is requested labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants