Skip to content

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
Copy link
Collaborator

@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

@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
@github-actions
Copy link

Release v3.5.0-rc.1 addresses this.

1 similar comment
@github-actions
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