Open forceedge01 opened 4 years ago
Move logic into files that can check the output options. Don't run logic that isn't asked for. The options should be overridable by the context themselves.
At present, the ->getPage() call throws an exception when working with requests on API.
Partially implemented for screenshot and debug bar selectors.
To make this safe, surround getUrl and getStatusCode calls as well with getOption call. add debugBarSelectors to output controlled options as well.
output: screenshot: false url: false status: false debugBarSelectors: false
add trackJs to the list.
Replace feature output with scenario output? Does rerun output help?
Even though at this point we can control what to output as part of the failure summary, the code is executed regardless. In situations such as testing the API, a screenshot doesn't serve much of a purpose. While there are ways to not show the screenshot even if the output is not controllable individually by the context file (controlled by the extension definition), the code executed produces a 500 error because the configuration elements are different.
For example when testing an API, there is no page to visit - this logic should run only if a screenshot is asked for.