Skip to content

Commit

Permalink
Updates for review -- minor sorting/aesthetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasxsong committed Mar 5, 2024
1 parent c7bf189 commit 89d35c4
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 223 deletions.
43 changes: 43 additions & 0 deletions cypress/e2e/participant/playPA.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { playPA } from '../../support/helperFunctions/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: "Let's go help my friends now!",
endText2: 'We have one last friend to help!',
endText3: 'You have helped me and all my friends!',
};
const breakBlockText = {
breakText1: "Great job! So many bananas! Let's get a few more!",
breakText2: 'Look at all those carrots!',
breakText3: "You are doing great! I am almost ready to go out and swim! Let's get a few more crabs.",
};

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.get('.p-dropdown-trigger', { timeout: 2 * timeout }).click();
cy.get('.p-dropdown-item', { timeout: 2 * timeout })
.contains(Cypress.env('testRoarAppsAdministration'))
.click();

// cy.get(".p-tabview").contains(pa.name);
cy.visit('/game/pa');

playPA(startText, endBlockText, breakBlockText);

cy.visit('/');
cy.get('.p-dropdown-trigger', { timeout: 2 * timeout })
.should('be.visible')
.click();
cy.get('.p-dropdown-item', { timeout: 2 * timeout })
.contains(Cypress.env('testRoarAppsAdministration'))
.should('be.visible')
.click();
cy.get('.tabview-nav-link-label', { timeout: 2 * timeout })
.contains('ROAR-Phoneme')
.should('have.attr', 'data-game-status', 'complete');
});
});
7 changes: 1 addition & 6 deletions src/components/GameTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@
</div>

<router-link
v-if="
!allGamesComplete &&
!game.completedOn &&
!game.taskData?.taskURL &&
!game.taskData?.variantURL
"
v-if="!allGamesComplete && !game.completedOn && !game.taskData?.taskURL && !game.taskData?.variantURL"
:to="{ path: 'game/' + game.taskId }"
></router-link>
</article>
Expand Down
Loading

0 comments on commit 89d35c4

Please sign in to comment.