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

If a Step was undefined, explain that to the user more clearly than cucumber does #692

Open
plocket opened this issue Apr 10, 2023 · 0 comments
Labels
bite-sized Well circumscribed small task enhancement New feature or request

Comments

@plocket
Copy link
Collaborator

plocket commented Apr 10, 2023

Add it to the Scenario itself if possible.

Something including something like "Did you spell something wrong in one of the Steps? Check the documentation at https://suffolklitlab.org/docassemble-AssemblyLine-documentation/docs/automated_integrated_testing."

You can probably use the After hook and the arguments passed to that, as well as our own scope.AddToReport(). [We can use the scenario parameter. See our current After to see how we check for the status of the test that just happened.]

Example of using .AddToReport():

ALKiln/lib/steps.js

Lines 1132 to 1135 in 4668760

scope.addToReport(scope, {
type: `row`,
value: `For security, ALKiln will avoid creating a screenshot for this error. It's possible a secret is being used on this screen.`
});

@plocket plocket added enhancement New feature or request bite-sized Well circumscribed small task labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bite-sized Well circumscribed small task enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant