-
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
Reporting/fix visual warning test #164383
Reporting/fix visual warning test #164383
Conversation
@@ -6,6 +6,7 @@ | |||
*/ | |||
|
|||
import type { Logger } from '@kbn/core/server'; | |||
import { loggerMock } from '@kbn/logging-mocks'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There aren't any changes made to this file except for some minor cleanups
timeRange: null, | ||
}; | ||
|
||
export class Screenshots { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this class to a standalone file
timeRange: null, | ||
}; | ||
|
||
export class Screenshots { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this out from index.ts
@@ -347,7 +347,6 @@ enabled: | |||
- x-pack/test/reporting_functional/reporting_and_deprecated_security.config.ts | |||
- x-pack/test/reporting_functional/reporting_and_security.config.ts | |||
- x-pack/test/reporting_functional/reporting_without_security.config.ts | |||
- x-pack/test/reporting_functional/reporting_and_timeout.config.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: added in 124a76c
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Closes #135309
This PR eliminates a skipped functional test by replacing the test coverage with unit tests.
x-pack/plugins/screenshotting/server/screenshots/screenshots.test.ts
: ensures that waiting too long for the URL to open will return the expected error messagex-pack/plugins/screenshotting/server/browsers/chromium/driver.test.ts
: ensures that when the screenshot capture method is passed an error message, that error message is injected into the screenshot