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

Wdio Percy Support v8 #11865

Merged
merged 44 commits into from Jan 12, 2024
Merged

Conversation

amaanbs
Copy link
Contributor

@amaanbs amaanbs commented Dec 13, 2023

Proposed changes

BrowserStack Percy Support to capture screenshots & snapshots on pre-existing test builds and generate reports on Percy.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

@erwinheitzman
Copy link
Member

Nice PR, left some minor feedback 👍

@amaanbs
Copy link
Contributor Author

amaanbs commented Dec 19, 2023

@erwinheitzman I have pushed changes as per the comments above. Can you do another round of review? Thanks!

@erwinheitzman
Copy link
Member

@christian-bromann could you also review this one? I think it's good to have two pair of eyes on this one 🙂

@amaanbs
Copy link
Contributor Author

amaanbs commented Dec 19, 2023

This is the corresponding PR for WebdriverIO V7

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Initial set of comments.

packages/wdio-browserstack-service/src/Percy/Percy.ts Outdated Show resolved Hide resolved
return false
}

// node v0.10
Copy link
Member

Choose a reason for hiding this comment

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

What is this comment about?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fs.accessSync was introduced post node 0.10+ so added handling as a failsafe

Copy link
Member

Choose a reason for hiding this comment

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

WebdriverIO defines which Node version it supports and it expects that all interfaces are supported for these versions. I don't see a need to document this in the code. Furthermore, I don't believe anyone uses a Node.js version older than v1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Removed

@amaanbs
Copy link
Contributor Author

amaanbs commented Dec 21, 2023

@christian-bromann Resolved the above comments, can you do another round of review post these changes? Thanks!

@07souravkunda
Copy link
Contributor

Looks good from the BrowserStack side.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Another set of suggestions

packages/wdio-browserstack-service/package.json Outdated Show resolved Hide resolved
@rev-doshi
Copy link
Contributor

@christian-bromann I have addressed all the comments, can you please check if it looks good

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks!

@christian-bromann
Copy link
Member

@rev-doshi happy to merge once the unit test pass

@rev-doshi
Copy link
Contributor

@christian-bromann thank you! I have fixed the UT issue and run them at my end.

@christian-bromann christian-bromann mentioned this pull request Jan 12, 2024
8 tasks
@christian-bromann christian-bromann added the PR: New Feature 🚀 PRs that contain new features label Jan 12, 2024
@christian-bromann christian-bromann merged commit facfe4b into webdriverio:main Jan 12, 2024
11 checks passed
@christian-bromann
Copy link
Member

Sorry, merged to quickly. I wanted to say: LGTM 👍 thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature 🚀 PRs that contain new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants