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

Implement spanish consent modal #457

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Implement spanish consent modal #457

merged 2 commits into from
Mar 27, 2024

Conversation

kellyel
Copy link
Collaborator

@kellyel kellyel commented Mar 26, 2024

No description provided.

Copy link

github-actions bot commented Mar 26, 2024

Visit the preview URL for this PR (updated for commit 5a35dab):

https://roar-staging--pr457-enh-spanish-assent-c4kxr89n.web.app

(expires Tue, 02 Apr 2024 21:59:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

@@ -82,7 +82,7 @@ const isAdmin = computed(() => {
return true;
});

const consentType = computed(() => (isAdmin.value ? 'tos' : 'assent'));
const consentType = computed(() => (isAdmin.value ? 'tos' : i18n.locale.value === 'es' ? 'assent-es' : 'assent'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Requested change:

  • to avoid a nested ternary
  • to allow Spanish localizations (otherwise es-co results in the English assent form)
Suggested change
const consentType = computed(() => (isAdmin.value ? 'tos' : i18n.locale.value === 'es' ? 'assent-es' : 'assent'));
const consentType = computed(() => {
if (isAdmin.value) {
return 'tos';
} else {
return i18n.locale.value.includes('es') ? 'assent-es' : 'assent'
}
});

Copy link

cypress bot commented Mar 26, 2024

1 flaky test on run #815 ↗︎

0 34 0 0 Flakiness 1

Details:

Tests for PR 457 "Implement spanish consent modal" from commit "5a35daba5266cc63...
Project: roar-dashboard-e2e Commit: 5a35daba52
Status: Passed Duration: 26:42 💡
Started: Mar 26, 2024 10:01 PM Ended: Mar 26, 2024 11:27 PM
Flakiness  cypress/e2e/participant/default-tests/playButtonGames.cy.js • 1 flaky test

View Output

Test Artifacts
Testing play through of vocab, cva, letter, and multichoice games as a participant > ROAR - Picture Vocabulary Play through Test Test Replay Screenshots

Review all test suite changes for PR #457 ↗︎

@kellyel kellyel merged commit b6292f4 into main Mar 27, 2024
9 of 14 checks passed
@kellyel kellyel deleted the enh/spanish-assent branch March 27, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants