-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Generate doc screenshots from tests #6603
Comments
@cjcenizal has this down, the kibana-ci pages have what I need now, closing this thereby |
We're now saving 86 screenshots through the tests; baseline/Console-default-request.png |
@palecur I'm reopening and assigning this to myself. I'm working on setting up an isolated series of functional tests which will take screenshots to help us guard against visual regressions. I also got some feedback from @kurtado that indicated it will be useful to have a series of tests that take screenshots for the training (which was the original intention behind this ticket). I'll close this once those two functional test batteries are done. |
@cjcenizal I'm thinking we should just close this? We did take a bunch of screenshots but they were never used in any docs. I think we've pulled them out at this point, or at least agreed that we would. |
@LeeDr Are you referring to the screenshots we took for visual diffing? If so, then I'd say this issue is a separate topic, so I'd consider it apart from those screenshots. I do think this issue could be reframed as "Automate documentation screenshots", because that process is currently manual and prone to human error. I'm not sure we need to couple that process to our tests. If you want to close this and create a new issue to capture that requirement, I think that would make sense. What do you think? |
I'm not referring to the visual diffing screenshots. This issue is about capturing screenshots during the tests while on various pages. I count 44 of them on master. As far as I know nobody has ever used them.
|
Historical note: These were originally meant to keep the images in the Kibana documentation up to date, but I suppose there's another approach to that nowadays. |
I did a cursory search through the current If we decide to re-implement the automation of documentation screenshots (which I think is a great idea), I think we should create a export const DOC_SCREENSHOT_CONSOLE_HELP_EXPANDED = 'console-help-expanded';
export const DOC_SCREENSHOT_CONSOLE_HELP_COLLAPSED = 'console-help-collapsed';
// etc... Then we can reference these names from within the test:
Benefits:
We should probably also set up an independent set of "tests" to uncouple this process from our functional tests. |
We need to define the steps the user would take to to get to the screenshots in the docs, then write tests to get the screen to this point and take a screenshot. This will ensure our docs are correct, because if they aren't, the tests will break
@palecur please work with @LeeDr to get up to speed on the integration testing and screenshot system
The text was updated successfully, but these errors were encountered: