-
Notifications
You must be signed in to change notification settings - Fork 0
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
UI test setup #17
Comments
Like described in #24 I very much recommend to use the moodle behat framework. Everything is already prepared including pipeline setup etc., one just has to write the feature files including the scenarios. The pipeline will spawn up a complete blank and preconfigured moodle instance, you can then configure the settings for your UI test directly in the feature file. See https://moodledev.io/general/development/tools/behat |
@nirajacharya2 is there more tests to add? please make list of scenario if there is any |
|
Should the steps in feature file be written like this? These steps can be found in many feature files that are inside moodled. I suggest we write these things clearly and inside step definition we call the function that this steps is calling? |
I think I would prefer to have the xpath hidden in the php function (inside a page object) and not written out in the feature file |
I agree. Do "the moodle people" allow us to create our own step definitions with human-friendly words? |
I think for our own steps we can do whatever we want, but should be still consistent with the moodle way. |
This issue can be closed as the UI test for moodle is completed. |
Set up UI test in Moodle that uses oCIS as the repository.
One of the preconditions of the test is to make sure your Moodle gets access to oCIS. After Oauth2 access is granted, one has to log in to the oCIS once when they select oCIS for upload and choose
allow
when it asks for permission to read files from oCIS. Note: This process should be done only once.The text was updated successfully, but these errors were encountered: