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

Reporting/fix visual warning test #164383

Merged
merged 9 commits into from
Aug 22, 2023

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Aug 22, 2023

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 message
  • x-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

@@ -6,6 +6,7 @@
*/

import type { Logger } from '@kbn/core/server';
import { loggerMock } from '@kbn/logging-mocks';
Copy link
Member Author

@tsullivan tsullivan Aug 22, 2023

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 {
Copy link
Member Author

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 {
Copy link
Member Author

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

@tsullivan tsullivan marked this pull request as ready for review August 22, 2023 00:20
@tsullivan tsullivan requested review from a team as code owners August 22, 2023 00:20
@tsullivan tsullivan added test release_note:skip Skip the PR/issue when compiling release notes labels Aug 22, 2023
@tsullivan tsullivan requested a review from a team as a code owner August 22, 2023 05:18
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: added in 124a76c

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #48 / aiops change point detection shows multiple results when split field is selected

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
screenshotting 6 7 +1

Total ESLint disabled count

id before after diff
screenshotting 10 11 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@tsullivan tsullivan merged commit deb64c1 into elastic:main Aug 22, 2023
@tsullivan tsullivan deleted the reporting/fix-visual-warning-test branch August 22, 2023 16:20
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes test v8.11.0
Projects
None yet
5 participants