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

Stats Traffic: Update UI Tests #22703

Merged
merged 4 commits into from
Feb 28, 2024
Merged

Conversation

staskus
Copy link
Contributor

@staskus staskus commented Feb 26, 2024

Fixes #22447
Depends on #22400

Regression Notes

  1. Potential unintended areas of impact

None

  1. What I did to test those areas of impact (or what existing automated tests I relied on)

None

  1. What automated tests I added (or what prevented me from doing so)

None

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Testing checklist:

  • WordPress.com sites and self-hosted Jetpack sites.
  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • VoiceOver.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • iPhone and iPad.
  • Multi-tasking: Split view and Slide over. (iPad)

@staskus staskus added the Stats label Feb 26, 2024
@staskus staskus added this to the 24.4 milestone Feb 26, 2024
@staskus staskus changed the base branch from trunk to task/22382-stats-traffic-create-date-picker February 26, 2024 16:20
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 26, 2024

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr22703-6a131ba
Version24.3
Bundle IDorg.wordpress.alpha
Commit6a131ba
App Center BuildWPiOS - One-Offs #9000
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 26, 2024

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr22703-6a131ba
Version24.3
Bundle IDcom.jetpack.alpha
Commit6a131ba
App Center Buildjetpack-installable-builds #8038
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@staskus staskus force-pushed the task/22447-stats-traffic-update-ui-tests branch from b6507d3 to 7c9fe18 Compare February 27, 2024 09:59
Base automatically changed from task/22382-stats-traffic-create-date-picker to trunk February 27, 2024 16:02
@staskus staskus marked this pull request as ready for review February 27, 2024 17:28
@staskus staskus requested a review from a team as a code owner February 27, 2024 17:28
@staskus staskus requested a review from guarani February 27, 2024 17:32
@tiagomar
Copy link
Contributor

👋 Hi @staskus, the build is failing for me on this branch, but I see it went well on CI. Am I missing something? I'm on Xcode 15.1.

Screenshot

@guarani
Copy link
Contributor

guarani commented Feb 28, 2024

It looks like the UI tests also run on the WordPress app and show Stats. I haven't run UI Tests for a while, so I'm not sure if this is part of the setup, but it's odd seeing Stats in the WordPress app again:

Simulator Screenshot - iPhone 15 Pro Max - 2024-02-27 at 22 06 57

Otherwise, the tests appear to run successfully.

If I run JetpackUITests, it fails with an "unable to find type StatsPeriodUnit in scope" error. I didn't dig into this more, but I'd be happy to loop back tomorrow.

@derekblank
Copy link
Contributor

@tiagomar In regards to your local build failures: I think this may be related to the merge of initial support for VideoPress v5 in #22602 which also included updated submodule references for Gutenberg and Jetpack. Based on your screenshot, there may be an issue with your other connected repositories or local Pods install that would need to be updated on your local machine.

You could try the following:

  • Ensure you have checked out the latest trunk from Gutenberg Mobile and run git submodule update --init --recursive to update the submodule references
  • Remove and reinstall all Pods to ensure you've got the latest Gutenberg Pod version: rm -rf Pods && bundle exec pod install

Let me know if either of those don't help resolve the issue.

@staskus
Copy link
Contributor Author

staskus commented Feb 28, 2024

It looks like the UI tests also run on the WordPress app and show Stats.

@guarani, yes, technically they can run on the WordPress app as well. However, UI tests are only run on the Jetpack app.

- group: "🔬 UI Tests"

but it's odd seeing Stats in the WordPress app again

It all depends on the feature flag configuration (https://github.com/wordpress-mobile/WordPress-iOS/blob/trunk/API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/feature_flags.json). In the end, both apps are mostly the same.

If I run JetpackUITests, it fails with an "unable to find type StatsPeriodUnit in scope" error. I didn't dig into this more, but I'd be happy to loop back tomorrow.

You're most likely having the same issue as Tiago. p1709057601865439-slack-C04U3GCAVK2 . It shouldn't be related to this PR.

Copy link
Contributor

@tiagomar tiagomar left a comment

Choose a reason for hiding this comment

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

I confirm that the build failures I'was facing were caused by issues in my local environment (thanks @derekblank !), nothing to do with this PR.

The changes look good, tests run smoothly on iPhone and iPad, and CI is 🟢. This is good to go! :shipit:

Copy link
Contributor

@guarani guarani left a comment

Choose a reason for hiding this comment

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

Tests passed now on the JP app (ran StatsTest in isolation). I'm not sure what caused the "unable to find type StatsPeriodUnit in scope" error yesterday. I'd already re-installed Pods after running into the same error @tiagomar mentions in #22703 (comment).
Thanks @staskus and @tiagomar! 🙇

guarani added a commit that referenced this pull request Feb 28, 2024
As @staskus pointed out in #22703 (comment), UI tests are run on the Jetpack app. 

Given this, it makes sense for the UI testing docs to suggest running Jetpack tests, as this is most likely what most contributors will want to run.
@staskus staskus merged commit 267faeb into trunk Feb 28, 2024
23 checks passed
@staskus staskus deleted the task/22447-stats-traffic-update-ui-tests branch February 28, 2024 14:44
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.

Update UI tests for Traffic tab
5 participants