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

✨(tests) generate edX users during test execution #24

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

SergioSim
Copy link
Collaborator

Purpose

We intend in the future to generate open response assessments related edX events.
Therefore we need to be able to create multiple edX users during test executions to simulate peer-graded assessments.

Proposal

  • add lmsCreateUser cypress command

Includes changes from #22 and #23. Blocked until #22 and #23 are merged.

When bootstraping this project in the dev branch two additional
directories are created: edx/src and edx/modules.
To ease switching between a feature branch and the dev branch we
choose to ignore the edx/modules directory.
When bootstraping this project in the dev branch two additional
directories are created: edx/src and edx/modules.
To ease switching between a feature branch and the dev branch we
choose to make the linter ignore the edx directory.
To keep the circleci machine up to date.
@SergioSim SergioSim self-assigned this Nov 8, 2022
@SergioSim SergioSim marked this pull request as ready for review November 8, 2022 16:11
The iframe in the js_input_response test needs some time to become
interactive. Therefore we disable chromeWebSecurity to give cypress
access to the cross-domain iframe to check whether the iframe is ready
or not.
The drag_and_drop test relies on the problem beeing at it's initial
state.
However, edX preserves the state of the problem once it's submitted.
Therefore we reset the drag_and_drop problem before answering it.
We upgrade cypress to its latest version.
We also upgrade the javascript dependencies used for linting.
We intend in the future to generate open response assessments related
edX events.
Therefore we need to be able to create multiple edX users during test
executions to simulate peer-graded assessments.
Also, using generated users in our tests makes them more isolated.
@SergioSim SergioSim force-pushed the generate-random-users branch from 3f405fa to 343328e Compare November 16, 2022 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant