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: added pathPattern parameter to takeScreenshot method #8093

Merged
merged 10 commits into from
Dec 22, 2023

Conversation

Bayheck
Copy link
Collaborator

@Bayheck Bayheck commented Nov 28, 2023

Purpose

Add new a parameter pathPattern to takeScreenshot method. It allows the use of placeholders for specific takeScreenshot calls.

Approach

I added a new parameter pathPattern to TakeScreenshotCommand .
In src/screenshots/capturer.js _capture method retrieve screenshotPath from pathPattern.
Show warning if both path and pathPattern present.

References

close #8086

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Nov 28, 2023
@Bayheck Bayheck removed the STATE: Need response An issue that requires a response or attention from the team. label Nov 28, 2023
src/screenshots/capturer.js Outdated Show resolved Hide resolved
Copy link
Contributor

@aleks-pro aleks-pro left a comment

Choose a reason for hiding this comment

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

I've got an error, when tried to use pathPattern in '*.ts' test file:
image

src/notifications/warning-message.ts Outdated Show resolved Hide resolved
@aleks-pro aleks-pro requested a review from titerman November 29, 2023 14:05
@aleks-pro aleks-pro changed the title add: added pathPattern parameter to takeScreenshot method feat: added pathPattern parameter to takeScreenshot method Dec 19, 2023
@aleks-pro aleks-pro merged commit 51ad3bc into DevExpress:master Dec 22, 2023
21 checks passed
Copy link

Release v3.5.0-rc.1 addresses this.

1 similar comment
Copy link

Release v3.5.0-rc.1 addresses this.

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

Successfully merging this pull request may close these issues.

takeScreenshot ignores Path Pattern Placeholders
4 participants