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

feat: add a screenshot script #56

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Conversation

bchelkowski
Copy link
Member

Screenshot script that takes a screenshot of the dev app.
Screenshots are saved under the screenshotDir path from .kopytkorc or if such field is not provided the default directory is set to /dist.
The script saves it under filename Screenshot_<Date as ISOString>.jpg

Requirements:

  • Roku device needs to have the dev app uploaded and opened.
  • The screen saver is NOT on the screen.

Todos:

  • Write documentation (if required)
  • Fix linting errors
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@bchelkowski bchelkowski requested a review from a team as a code owner January 25, 2022 15:10
@bchelkowski bchelkowski requested review from tbazelczuk and a user and removed request for a team January 25, 2022 15:10
Comment on lines 5 to 9
(async () => {
await new StepRunner([
{ step: ScreenshotStep, config: screenshotStepConfig },
]).run();
})();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
(async () => {
await new StepRunner([
{ step: ScreenshotStep, config: screenshotStepConfig },
]).run();
})();
(() => {
new StepRunner([
{ step: ScreenshotStep, config: screenshotStepConfig },
]).run();
})();

or maybe even

Suggested change
(async () => {
await new StepRunner([
{ step: ScreenshotStep, config: screenshotStepConfig },
]).run();
})();
(() => new StepRunner([
{ step: ScreenshotStep, config: screenshotStepConfig },
]).run())();

(not sure, too much brightscript on daily basis 😅)

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to:

new StepRunner([
  { step: ScreenshotStep, config: screenshotStepConfig },
]).run();

@ce-bot-github-swe
Copy link

Scan submitted to Checkmarx

@ce-bot-github-swe
Copy link

ce-bot-github-swe commented Jan 25, 2022

Logo
Checkmarx SAST - Scan Summary & Details

Cx-SAST Summary

Total of 3 vulnerabilities
High 0 High
Medium 0 Medium
Low 3 Low
Info 0 Info

Checkmarx Scan Summary

Severity Count
High 0
Medium 0
Low 3
Informational 0

Violation Summary

Low 1 Low

View more details on Checkmarx UI

Cx-SAST Details

Lines Severity Category File Link
26 Low Use_Of_Hardcoded_Password src/core/screenshot-taker.js Checkmarx

Logo
Checkmarx SCA - Scan Summary & Details

Cx-SCA Summary

Total Packages Identified: 357
Scan Risk Score: 9.80

High 4 High severity vulnerabilities
Medium 0 Medium severity vulnerabilities
Low 1 Low severity vulnerabilities
View more details on Checkmarx UI

Cx-SCA vulnerability result overview

Vulnerability ID Package Severity CVSS score Publish date Current version Recommended version Link in CxSCA Reference – NVD link
CVE-2021-3918 json-schema HIGH 9.8 2021-11-13T09:15:00 0.2.3 Vulnerability Link CVE-2021-3918
Cx8bc4df28-fcf5 debug HIGH 8.6 2020-12-10T17:14:00 4.3.2 Vulnerability Link N\A
CVE-2021-3807 ansi-regex HIGH 7.5 2021-09-17T07:15:00 5.0.0 Vulnerability Link CVE-2021-3807
Cxdca8e59f-8bfe inflight HIGH 7.5 2020-12-07T10:10:00 1.0.6 Vulnerability Link N\A
Cxda14f253-4e52 bluebird LOW 3.7 2016-04-24T21:00:00 3.7.2 Vulnerability Link N\A

@bchelkowski bchelkowski merged commit 54c7244 into master Jan 26, 2022
@bchelkowski bchelkowski deleted the feat/add-screenshot-script branch January 26, 2022 10:14
github-actions bot pushed a commit that referenced this pull request Jan 26, 2022
# [1.2.0](v1.1.4...v1.2.0) (2022-01-26)

### Features

* add a screenshot script ([#56](#56)) ([54c7244](54c7244))
@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants