-
Notifications
You must be signed in to change notification settings - Fork 4
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
Test All Open Administrations on Release #517
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
24d757e
update firebase functions module
ksmontville 9494ed2
initial commit
ksmontville 44d22a6
rebase onto main
ksmontville 7ae9f36
Add test retries function; more logging
ksmontville ff7ec66
rebase onto main
ksmontville ba3929c
add playFluency-CALF to test suite.
ksmontville 5e2efc5
Reduce number of testing containers for pre-release tests
ksmontville f5e7aa1
update timeouts
ksmontville 1091c16
update list of games
ksmontville 7443693
remove retry function
ksmontville d7f90df
increase initial load timeout to 10 minutes to test load times
ksmontville File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 8 additions & 25 deletions
33
cypress/e2e/participant/default-tests/es-tests/playFluency-ARF-ES.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
import { playFluency } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
import { playFluencyARF } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const administration = Cypress.env('testSpanishRoarAppsAdministration'); | ||
const language = 'es'; | ||
const task = 'fluency-arf-es'; | ||
const endText = 'Has terminado.'; | ||
|
||
describe('Test playthrough of Fluency ARF ES as a participant', () => { | ||
it('Fluency Playthrough Test', () => { | ||
Cypress.on('uncaught:exception', () => { | ||
return false; | ||
playFluencyARF({ | ||
administration: administration, | ||
language: language, | ||
task: task, | ||
endText: endText, | ||
}); | ||
|
||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(administration); | ||
|
||
cy.get('.p-tabview').contains('ROAM - Un Dígito'); | ||
cy.visit(`/game/fluency-arf-es`); | ||
|
||
// Click jspsych button to begin | ||
cy.get('.jspsych-btn', { timeout: 5 * timeout }) | ||
.should('be.visible') | ||
.click(); | ||
|
||
playFluency(endText); | ||
|
||
// Check if game is marked as complete on the dashboard | ||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(administration); | ||
cy.get('.tabview-nav-link-label').contains('ROAM - Un Dígito').should('exist'); | ||
}); | ||
}); |
34 changes: 9 additions & 25 deletions
34
cypress/e2e/participant/default-tests/es-tests/playFluency-CALF-ES.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,19 @@ | ||
import { playFluency } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
import { playFluencyCALF } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const administration = Cypress.env('testSpanishRoarAppsAdministration'); | ||
const language = 'es'; | ||
const task = 'fluency-calf-es'; | ||
const endText = 'Has terminado.'; | ||
const continueText = 'continuar'; | ||
|
||
describe('Test playthrough of Fluency ARF ES as a participant', () => { | ||
it('Fluency Playthrough Test', () => { | ||
Cypress.on('uncaught:exception', () => { | ||
return false; | ||
playFluencyCALF({ | ||
administration: administration, | ||
language: language, | ||
task: task, | ||
endText: endText, | ||
continueText: continueText, | ||
}); | ||
|
||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(administration); | ||
|
||
cy.get('.p-tabview').contains('ROAM - Varios Dígitos'); | ||
cy.visit(`/game/fluency-calf-es`); | ||
|
||
// Click jspsych button to begin | ||
cy.get('.jspsych-btn', { timeout: 5 * timeout }) | ||
.should('be.visible') | ||
.click(); | ||
|
||
playFluency(endText, continueText); | ||
|
||
// Check if game is marked as complete on the dashboard | ||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(administration); | ||
cy.get('.tabview-nav-link-label').contains('ROAM - Varios Dígitos').should('exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { playWrittenVocabulary } from '../../../support/helper-functions/roar-multichoice/multichoiceHelpers'; | ||
|
||
describe('ROAR - Written Vocabulary Play Through', () => { | ||
it('Plays Written Vocabulary', () => { | ||
playWrittenVocabulary(); | ||
}); | ||
}); |
30 changes: 2 additions & 28 deletions
30
cypress/e2e/participant/default-tests/playFluency-ARF.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,7 @@ | ||
import { playFluency } from '../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const endText = 'You are all done.'; | ||
import { playFluencyARF } from '../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
describe('Test playthrough of Fluency as a participant', () => { | ||
it('Fluency Playthrough Test', () => { | ||
Cypress.on('uncaught:exception', () => { | ||
return false; | ||
}); | ||
|
||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
|
||
cy.get('.p-tabview').contains('ROAM - Single Digit'); | ||
cy.visit(`/game/fluency-arf`); | ||
|
||
// Click jspsych button to begin | ||
cy.get('.jspsych-btn', { timeout: 6 * timeout }) | ||
.should('be.visible') | ||
.click(); | ||
|
||
playFluency(endText); | ||
|
||
// Check if game is marked as complete on the dashboard | ||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
cy.get('.tabview-nav-link-label').contains('ROAM - Single Digit').should('exist'); | ||
playFluencyARF(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { playFluencyCALF } from '../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
describe('Test playthrough of Fluency as a participant', () => { | ||
it('Fluency Playthrough Test', () => { | ||
playFluencyCALF(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { playLetter } from '../../../support/helper-functions/roar-letter/letterHelpers'; | ||
|
||
describe('ROAR - Letra Play Through', () => { | ||
it('Plays Letra', () => { | ||
playLetter(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { playMorphology } from '../../../support/helper-functions/roar-multichoice/multichoiceHelpers'; | ||
|
||
describe('ROAR - Written Vocabulary Play Through', () => { | ||
it('Plays Written Vocabulary', () => { | ||
playMorphology(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,21 @@ | ||
import { playPA } from '../../../support/helper-functions/roar-pa/paHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const startText = 'In this game we are going to look for words that BEGIN with the same sound.'; | ||
const endBlockText = { | ||
endText1: 'Take a break if needed', | ||
endText2: 'I have been swimming so much', | ||
endText3: 'You have helped me and all my friends!', | ||
}; | ||
const breakBlockText = 'Take a break if needed'; | ||
const breakBlockText2 = { | ||
break1: 'Great job', | ||
break2: 'Look at all those carrots', | ||
break3: 'You are doing great', | ||
}; | ||
// const timeout = Cypress.env('timeout'); | ||
// const startText = 'In this game we are going to look for words that BEGIN with the same sound.'; | ||
// const endBlockText = { | ||
// endText1: 'Take a break if needed', | ||
// endText2: 'I have been swimming so much', | ||
// endText3: 'You have helped me and all my friends!', | ||
// }; | ||
// const breakBlockText = 'Take a break if needed'; | ||
// const breakBlockText2 = { | ||
// break1: 'Great job', | ||
// break2: 'Look at all those carrots', | ||
// break3: 'You are doing great', | ||
// }; | ||
ksmontville marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
describe('Testing playthrough of ROAR-Phoneme as a participant', () => { | ||
it(`ROAR-Phoneme Playthrough Test`, () => { | ||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
|
||
// cy.get(".p-tabview").contains(pa.name); | ||
cy.visit('/game/pa'); | ||
|
||
playPA(startText, breakBlockText, breakBlockText2, endBlockText); | ||
|
||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
cy.get('.tabview-nav-link-label', { timeout: 3 * timeout }) | ||
.contains('ROAR - Phoneme') | ||
.should('exist'); | ||
playPA(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { playSRE } from '../../../support/helper-functions/roar-sre/sreHelpers'; | ||
|
||
const administration = Cypress.env('testRoarAppsAdministration'); | ||
const language = 'en'; | ||
|
||
describe('ROAR - Sentence Play Through', () => { | ||
it('Plays SRE', () => { | ||
playSRE(administration, language); | ||
playSRE(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { playVocabulary } from '../../../support/helper-functions/roar-vocab/vocabHelpers'; | ||
|
||
describe('ROAR - Written Vocabulary Play Through', () => { | ||
it('Plays Written Vocabulary', () => { | ||
playVocabulary(); | ||
}); | ||
}); |
30 changes: 3 additions & 27 deletions
30
cypress/e2e/participant/network-tests/roam-fluency/playFluency-ARF-3G.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,7 @@ | ||
import { playFluency } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
import { playFluencyARF } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const endText = 'You are all done.'; | ||
|
||
describe('Test playthrough of Fluency as a participant', () => { | ||
describe('Test playthrough of Fluency as a participant in a simulated 3G network', () => { | ||
it('Fluency Playthrough Test', () => { | ||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.wait(0.3 * timeout); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
|
||
cy.get('.p-tabview', { timeout: timeout }).contains('ROAM - Single-Digit'); | ||
cy.visit(`/game/fluency-arf`); | ||
|
||
// Click jspsych button to begin | ||
cy.get('.jspsych-btn', { timeout: 5 * timeout }) | ||
.should('be.visible') | ||
.click(); | ||
|
||
playFluency(endText); | ||
|
||
// Check if game is marked as complete on the dashboard | ||
// Check if game is marked as complete on the dashboard | ||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
cy.get('.tabview-nav-link-label').contains('ROAM - Single-Digit').should('exist'); | ||
playFluencyARF(); | ||
}); | ||
}); |
30 changes: 3 additions & 27 deletions
30
cypress/e2e/participant/network-tests/roam-fluency/playFluency-ARF-HighLatency.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,7 @@ | ||
import { playFluency } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
import { playFluencyARF } from '../../../../support/helper-functions/roam-fluency/fluencyHelpers'; | ||
|
||
const timeout = Cypress.env('timeout'); | ||
const endText = 'You are all done.'; | ||
|
||
describe('Test playthrough of Fluency as a participant', () => { | ||
describe('Test playthrough of Fluency as a participant in a simulated high latency networkt', () => { | ||
it('Fluency Playthrough Test', () => { | ||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.wait(0.3 * timeout); | ||
cy.visit('/'); | ||
|
||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
|
||
cy.get('.p-tabview', { timeout: timeout }).contains('ROAM - Single-Digit'); | ||
cy.visit(`/game/fluency-arf`); | ||
|
||
// Click jspsych button to begin | ||
cy.get('.jspsych-btn', { timeout: 12 * timeout }) | ||
.should('be.visible') | ||
.click(); | ||
|
||
playFluency(endText); | ||
|
||
// Check if game is marked as complete on the dashboard | ||
// Check if game is marked as complete on the dashboard | ||
cy.visit('/'); | ||
cy.wait(0.2 * timeout); | ||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
cy.get('.tabview-nav-link-label').contains('ROAM - Single-Digit').should('exist'); | ||
playFluencyARF(); | ||
}); | ||
}); |
9 changes: 8 additions & 1 deletion
9
cypress/e2e/participant/network-tests/roar-swr/playSWR-2G.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import { playSWR } from '../../../../support/helper-functions/roar-swr/swrHelpers.js'; | ||
|
||
playSWR(Cypress.env('testRoarAppsAdministration')); | ||
const administration = Cypress.env('testRoarAppsAdministration'); | ||
const language = 'en'; | ||
|
||
describe('ROAR - Word Play Through in a simulated 2G network', () => { | ||
it('Plays Word', () => { | ||
playSWR(administration, language); | ||
}); | ||
}); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this use the staging link instead of localhost?
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 don't think so, because we are testing the open administrations that have been synced from production Firestore to development Firestore. Running on dev will also allow us to run super admin tests which can clean up the dev database on a new relese (i.e. deleting all test runs).