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

Add tests for Strava #200

Merged
merged 2 commits into from
Oct 27, 2020
Merged

Add tests for Strava #200

merged 2 commits into from
Oct 27, 2020

Conversation

tricinel
Copy link
Contributor

Adding the missing unit and integration tests for Strava, related to #71

@codecov-io
Copy link

Codecov Report

Merging #200 into main will increase coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   87.12%   87.42%   +0.29%     
==========================================
  Files          82       82              
  Lines         668      668              
  Branches      128      123       -5     
==========================================
+ Hits          582      584       +2     
+ Misses         54       53       -1     
+ Partials       32       31       -1     
Impacted Files Coverage Δ
...ackages/mdx-embed/src/components/strava/strava.tsx 100.00% <ø> (+25.00%) ⬆️
src/components/pinterest/pin.tsx 80.00% <0.00%> (ø)
src/components/strava/strava.tsx 100.00% <0.00%> (+25.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 038bc8e...c599e84. Read the comment docs.

Some activities have maps and some have photos, so it's not reliable to check for either
using this setup with storybook running.
*/
cy.getIframeBody().find('.content').should('exist');
Copy link
Owner

Choose a reason for hiding this comment

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

This is a fair point. I think for now this is totally fine. our "sprint goal" if you like was just to have integration tests in place to ensure the provider scripts actually loads. What it loads based on props that configure it will likely come later. On pretty much all components we need to come up with a url constructor method unique to each component which can then be tested. Once that's done we can probably look to dig in a little more with E2E tests. Great job on this though... Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, that's great! I thought we'd benefit from having this in there at some point - I thought a comment makes sense for the next person who might work on it. 👍

Thanks for taking a look so quickly!

@PaulieScanlon PaulieScanlon added hacktoberfest Open source is changing the world - one pull request at a time hacktoberfest-accepted Open source is changing the world - one pull request at a time labels Oct 27, 2020
@PaulieScanlon PaulieScanlon added this to the Stable Release | 1.0.0 milestone Oct 27, 2020
This was linked to issues Oct 27, 2020
@PaulieScanlon PaulieScanlon merged commit 326e955 into PaulieScanlon:main Oct 27, 2020
matiasfha pushed a commit to matiasfha/mdx-embed that referenced this pull request Nov 24, 2020
* Add Strava unit tests; fixes PaulieScanlon#117

* Add Strava integration tests; fixes PaulieScanlon#118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Open source is changing the world - one pull request at a time hacktoberfest-accepted Open source is changing the world - one pull request at a time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

strava-integration-test strava-unit-test
3 participants