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

Issue during the generation of the snaptests from a local.json #17

Open
Axel303 opened this issue May 25, 2023 · 0 comments
Open

Issue during the generation of the snaptests from a local.json #17

Axel303 opened this issue May 25, 2023 · 0 comments

Comments

@Axel303
Copy link

Axel303 commented May 25, 2023

I'm trying to generate tests based on a local json(This one contains some tests and components) file via the command :

snaptest -r nightwatch -s flat -i actual.json

The generation was ignoring the components that get called by the tests.

I then copied my local test(folders) to a cloud version and do the same operation via the command :

snaptest -r nightwatch -s flat -t xxxxxxxxx -a project -d 63

This command was generating correct snaptests with the required components.

After investigating in the CLI code, i found out that in the file pipeline/fetch.js has two possibilies :

  1. From Local
  2. From cloud

It looks like the cloud fetch is doing something special in the API that transforms the json.

It's regrouping "Tests" and "Components" into the object property "tests".

This feature is missing in the "local" version but the "problem" can be fixed by implementing :

4b38f4d

Is my guess correct ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant