-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
b6507d3
to
7c9fe18
Compare
👋 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. |
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: 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. |
@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:
Let me know if either of those don't help resolve the issue. |
@guarani, yes, technically they can run on the WordPress app as well. However, UI tests are only run on the Jetpack app. WordPress-iOS/.buildkite/pipeline.yml Line 77 in aab11ac
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.
You're most likely having the same issue as Tiago. p1709057601865439-slack-C04U3GCAVK2 . It shouldn't be related to this PR. |
There was a problem hiding this 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!
There was a problem hiding this 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! 🙇
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.
Fixes #22447
Depends on #22400
Regression Notes
None
None
None
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: