Closed alexkuc closed 4 months ago
It looks like the actual datetime is missing the required fields as there is an error saying missing properties (for the fields introduced by PR #1277)
In regards to actual data, these fields do exist:
Not sure about field status
though 🤔
Gonna run quick check against Apollo client to confirm the data is actually coming from Cafe with the correct fields
🚧 Regression detected in Barista repository❗
Currently working on pinpointing which PR has caused the regression…
E2E Outcome | PR | Git Commit |
---|---|---|
❌ | https://github.com/eventespresso/barista/pull/1277 | 97408d93 |
✅ | https://github.com/eventespresso/barista/pull/1275 | 88527b6a |
Edit: make sure to run yarn build
before starting E2E tests after checking out aforementioned PRs
Will proceed to first investigate the data coming from the server then will check GraphQL queries in the frontend code.
As I had some issues with Apollo Client DevTools, I added up inspecting variable eventEspressoData
which revealed that fields isPostponed
and isCancelled
are in fact missing. Field status
is present so all good there.
Maybe fix is required from Cafe's end since variable eventEspressoData
is supplied by Cafe repository
Adding those fields to GraphQL fixed the fatal issue with frontend code but now datetimes and tickets are missing i.e. gone no results found
even without filters. Investigating...
As per PR's #1277 initial comment, branch NEW/CORE/datetime-status
is required from the Cafe repository.
Currently checking if merging https://github.com/eventespresso/cafe/pull/978 will enough to resolve bugs for E2E in Barista repository
Test fails because tooltip was changed from open event datetime main menu
to event datetime main menu
. Investigating.
Everything is good with the label and the tooltip. The issue comes from #1277 as the newly created datetime has now status TBD
or To Be Determined
.
Fix looks simple - need to set datetime status to Calendar controlled
.
Edit: instead, removed filter
This issue will be fixed by 2 PRs:
After discussion with @tn3rb on Slack, I'll change the default branch for Cafe from DEV
to NEW/CORE/datetime-status
. After the affecting Cafe PR is merged, the branch can be changed back to DEV
.
PR #1277 was removed from branch master
hence this is no longer applies
⚠️ until Cafe PR is merged, as a workaround, you can run e2e tests on demand against specific branches #1286 ⚠️
After fixing catastrophic bug in E2E tests for Barista repo (https://github.com/eventespresso/actions/pull/57) it was revealed that PR #1277 has introduced regression. The scope of this issue and subsequent PR is to resolve bugs and restore E2E tests to a passable state.
TODOs
error creating datetime