-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: ensure that feedback and response interactions return correct mutation content and trigger subscriptions #4309
Conversation
Current Aviator status
This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
📝 Walkthrough📝 WalkthroughWalkthroughThe pull request introduces several updates primarily focused on enhancing feedback handling within the AudienceInteraction component. Key changes include the addition of new GraphQL imports, modifications to the Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
klicker-uzh
|
Project |
klicker-uzh
|
Run status |
|
Run duration | 11m 35s |
Commit |
|
Committer | Julius Schlapbach |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
138
|
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (5)
cypress/cypress/e2e/F-live-quiz-workflow.cy.ts (5)
31-43
: Consider adding assertions to verify question creationIn the test
Create the questions required in the live quiz test workflows
, you create questions but do not include assertions to confirm that they were created successfully. Adding assertions can help ensure that the questions exist in the system as expected and improve test reliability.
Line range hint
604-604
: Address the TODO: Replace withcy.createStacks
functionThere's a TODO comment indicating that this section should be replaced with the
cy.createStacks
function after migrating to element stacks. Consider implementing this change to keep the test code up-to-date and reduce technical debt.Do you want assistance in updating this code with
cy.createStacks
, or should I open a new GitHub issue to track this task?
Line range hint
582-611
: Refactor repeated test steps into reusable functionsThe steps for creating and starting a live quiz are repeated in multiple tests. Extracting these steps into reusable functions or custom Cypress commands can reduce code duplication and improve maintainability.
Line range hint
675-685
: Reset viewport after mobile device testsAfter testing functionalities on mobile devices in
Test the live quiz functionalities on mobile devices
, consider resetting the viewport to the default to prevent side effects on subsequent tests.Apply this change at the end of the test to reset the viewport:
... + // Reset viewport to default + cy.viewport('macbook-15')
Line range hint
694-700
: Replace fixed waits with dynamic waitsUsing fixed delays like
cy.wait(500)
can lead to flaky tests. Instead, use dynamic waits by asserting the presence or state of elements before proceeding.Apply this diff to replace
cy.wait()
with dynamic waits:- cy.wait(1000) + cy.get('[data-cy="next-block-timeline"]').should('be.visible') - cy.get('[data-cy="next-block-timeline"]').click() - cy.wait(500) + cy.get('[data-cy="next-block-timeline"]').click() + cy.get('[data-cy="some-selector-after-click"]').should('be.visible') - cy.get('[data-cy="next-block-timeline"]').click() - cy.wait(500) + cy.get('[data-cy="next-block-timeline"]').click() + cy.get('[data-cy="another-selector-after-click"]').should('be.visible')
klicker-uzh
|
Project |
klicker-uzh
|
Run status |
|
Run duration | 12m 28s |
Commit |
|
Committer | Julius Schlapbach |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
138
|
Summary by CodeRabbit
New Features
Bug Fixes
Documentation