Rajesh Taneja
921faad9ad
MDL-53571 behat: Use Escaper for escaping
...
xpathLiteral has been depreacted, use Escaper instead
2016-04-06 15:38:31 +08:00
Rajesh Taneja
eb9ca848fa
MDL-53381 behat: Replaced chained steps with api.
...
Behat 3.x doesn't support chained steps and hence
this is first step to get rid of chained steps in core.
2016-04-06 11:32:49 +08:00
Rajesh Taneja
42ad096fdb
MDL-46891 Behat: Added support for behat 3
2016-03-11 10:51:15 +08:00
Rajesh Taneja
c2df9b3b90
MDL-52427 behat: Fixed question selectors
...
As class is changed, we need to convert selector
to check if class is contained, rather then checking
selecting with specific class.
2015-12-22 10:43:22 +08:00
rajesh Taneja
4cfaf27c08
MDL-49973 behat: Fixed string change from Continue to Delete
2015-09-24 15:38:20 +02:00
Rajesh Taneja
0fe86bbdbb
MDL-49799 behat: replaced asd.com with example.com
...
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
Tim Hunt
df44db5baa
MDL-48373 behat, questions: convert tests to use the new steps
...
The new steps make it more efficient to create questions.
While making the changes, I took the opportunity to alter the tests to
follow Behat best practices, and only test one thing per scenario.
2014-12-05 12:22:27 +00:00
Tim Hunt
234c5337f7
MDL-47797 quesion preview: improve the behat script
...
Tests a few more buttons, and also verify more of the UI.
2014-10-31 15:52:55 +00:00
Tim Hunt
6f336f3602
MDL-47588 question behat tests: don't close the preview window.
...
If you do. Chrome + Selenium2 gets stuck (on Windows at least). Selenium
must be trying to send commands ot a window that does not exist any
more.
2014-10-20 12:10:15 +01:00
Tim Hunt
2dee2330aa
MDL-43089 behat: fix core_question tests that use quiz.
...
Unfortunately, using the quiz is the only way to test this, so no way to break the dependency.
2014-10-05 22:47:52 +01:00
Tim Hunt
6d99e71847
MDL-46916 behat: improve question state test.
2014-08-21 14:16:31 +01:00
Tim Hunt
f4fe3968a2
MDL-46212 questions: add {} whenver vars are put into "" strings
...
Having had one subtle bug cased be this, I decided to do a search and
fix all of these.
2014-07-03 14:02:39 +01:00
Marina Glancy
9422f6ee42
MDL-46163 question/quiz: fix elements ids and their labels
2014-07-03 10:13:00 +01:00
Andrew Nicols
f87b22327f
MDL-32729 Question: Correct button selection when openin qbank chooser
...
Some browsers do not bubble form submission events to the window, and we
had more than one form on the page in certain conditions. We need to select
all of the forms on a page and then test the action.
2014-04-02 09:54:32 +08:00
David Monllao
0176d12dd6
MDL-44246 behat: New mod_quiz test when JS is disabled
...
Also including a modification in behat_question_base
to make the internal method work with both JS and non-JS.
2014-03-18 15:32:58 +08:00
Tim Hunt
2f83d71ccc
MDL-44534 also fix the mod_quiz behat tests.
...
They had duplicated code. I refactored.
2014-03-13 18:33:27 +01:00
Eloy Lafuente (stronk7)
e649662489
Merge branch 'MDL-44534' of git://github.com/timhunt/moodle
...
Conflicts:
question/tests/behat/copy_questions.feature
2014-03-13 18:32:41 +01:00
Tim Hunt
7b2a5e5663
MDL-44534 increase core_question Behat test robustness.
2014-03-10 12:32:39 +00:00
David Monllao
759b323e0e
MDL-43236 behat: Updating references to deprecated methods
2014-03-07 16:05:21 +08:00
David Monllao
f083d6145e
MDL-43738 behat: Updating features files
...
The following used steps were replaced by the ones
added in this issue:
- I fill the moodle form with
- I fill in with
- I select from
- I select radio button
- I check
- I uncheck
- the field should match
Also removing test for deprecated steps:
- the ASD checkbox should be checked
- the ASD checkbox should not be checked
2014-02-27 18:22:05 +08:00
Tim Hunt
d7ddbc8297
MDL-32523 question behat tests: distinctive question names
...
This means that, if you are watching the tests run, it is easier to see
which test is currently being executed.
2014-01-17 10:54:13 +00:00
M Kassaei
e0c41591e1
MDL-32523 Duplicate questions in question bank
2014-01-17 10:54:12 +00:00
David Monllao
d1e55a47be
MDL-42625 behat: Step definitions + related changes in features
...
In general aiming for compatibility with multiple browsers,
firefox, chrome and phantomjs to be more specific.
* Removing hardcoded waits
* Adding @_alert, @_switch_window and @_switch_frame tags,
to label actions that different drivers have problems with.
* Adding missing @_files_upload and @_only_local tags to features that
uploads files.
* Fixing a few wait for page ready what specified miliseconds.
* New methods to ensure elements (usual selectors), sections and editors
are ready to interact with
* Changing the select an option implementation to deal with the different
drivers implementations when listening to JS events.
2013-12-06 13:10:24 +08:00
David Monllao
e7c71c448b
MDL-42627 behat: Moving the deprecated method to behat_deprecate and updating scenarios
2013-12-02 14:13:17 +08:00
Dan Poltawski
afc33a9ad1
MDL-42286 fix trailing whitespace
2013-11-04 14:14:30 +08:00
Dan Poltawski
fa5b21216f
Merge branch 'MDL-42286_behat' of https://github.com/andyjdavis/moodle
2013-11-04 14:13:27 +08:00
Andrew Davis
b54f5086f6
MDL-42286 questionbank: add behat tests for putting questions in categories MDLQA-95
2013-11-01 10:28:28 +08:00
Jason Fowler
7db052a8f2
MDL-42285 Behat: Automate MDLQA-93 - A teacher can delete questions from the question bank
2013-10-24 12:35:23 +08:00
David Monllao
3897608152
MDL-39635 behat: XPath cleanups
...
- Escaping steps arguments redirected to other steps
- Adding normalized-space() in all contains() assertions
- General xpaths review
- Convering provided xpath text strings to xpath literals
to avoid problems with arguments containing both single
quotes and double quotes
2013-07-19 10:02:36 +02:00
David Monllao
dedb973878
MDL-39635 behat: Replacing hardcoded language strings
...
Using get_string() instead.
2013-07-19 10:02:10 +02:00
David Monllao
00ea74cb54
MDL-39348 behat: Chaining strings instead of splitting strings in lines
2013-05-03 10:16:44 +08:00
David Monllao
550d842e3c
MDL-39232 behat Normalize feature tags according to component names
2013-04-30 11:54:47 +08:00
David Monllao
242a27b180
MDL-38956 behat: New test
...
According to MDLQA-92, a teacher can preview
questions in the question bank.
2013-04-15 14:14:31 +08:00
David Monllao
d72a183645
MDL-38957 behat: New test
...
According to MDLQA-94, a teacher can
sort questions in the question bank.
2013-04-11 17:24:12 +08:00
David Monllao
a97d274c92
MDL-38958 behat: New test
...
According to MDLQA-91, a teacher can
edit questions in the question bank.
2013-04-11 17:23:08 +08:00
David Monllao
336b5b5914
MDL-38958 behat: Step definition to add questions
2013-04-11 11:47:03 +08:00