Huong Nguyen
9d7ccae2d5
MDL-62814 Question: Improve column base display_header
...
Column base does not support custom tip if sortable is an array
2018-07-06 10:56:34 +07:00
Tim Hunt
b116f8b9ad
MDL-62811 question bank: rendering shouldn't load individual questions
2018-07-05 17:00:45 +01:00
Shamim Rezaie
3722c7d697
MDL-62532 core_question: Include standard tags in the tags autocomplete
2018-05-28 10:53:57 +10:00
Andrew Nicols
d44064cdd6
MDL-61407 question: Add initial privacy implementation
2018-05-03 16:14:35 +08:00
Ryan Wyllie
6768729e08
MDL-61138 question: external function to get random question set
2018-04-19 13:51:40 +08:00
Andrew Nicols
682282de55
Merge branch 'MDL-61464-master' of git://github.com/rezaies/moodle
2018-04-05 09:44:05 +08:00
Ryan Wyllie
c53beb73e5
MDL-61364 question: unit tests for submit_tags_form
2018-03-26 11:27:47 +08:00
Shamim Rezaie
7c33ba471f
MDL-61464 Questions: Add unit test for question tags backup and restore
2018-03-26 12:28:08 +11:00
Shamim Rezaie
c185e4fe21
MDL-61589 Questions: Top question category naming improvement
...
Display the context name next to the top question category name.
2018-03-15 18:47:25 +11:00
Shamim Rezaie
abe7ceabfa
MDL-61557 Questions: Fixed behat failure with clean
2018-03-07 17:08:41 +01:00
Shamim Rezaie
451df14218
MDL-61556 Questions: Fixed behat failure with clean
2018-03-07 17:08:33 +01:00
Eloy Lafuente (stronk7)
e28b586b9c
Merge branch 'MDL-61557-master' of git://github.com/rezaies/moodle
2018-03-07 00:19:50 +01:00
Shamim Rezaie
8ece85602a
MDL-61556 Questions: Add behat test
2018-03-05 14:17:52 +11:00
Shamim Rezaie
c618e93e66
MDL-61557 Questions: Add behat test
2018-03-05 14:16:13 +11:00
Andrew Nicols
1e41e6ddd9
Merge branch 'MDL-61135-master' of git://github.com/ryanwyllie/moodle
2018-02-12 11:34:56 +08:00
Ryan Wyllie
d7abdb64ee
MDL-61135 question: add behat test for tag filtering
2018-02-08 02:44:17 +00:00
Shamim Rezaie
b0ae7d082a
MDL-61132 Questions: Fix behat failures
2018-02-05 13:59:39 +11:00
Shamim Rezaie
869320c7f4
MDL-61132 Questions: Unit tests compatibility
...
Modified unit tests to adapt with "Top" categories.
2018-02-05 11:58:58 +11:00
Simey Lameze
fdeeaff954
MDL-58265 core_test: replace I turn editing on steps
...
Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.
Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00
Simey Lameze
c987d1b2ef
MDL-58265 core_test: replace all uses of I follow course steps
...
Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00
Rajesh Taneja
57bee542ab
MDL-56519 behat: Fixed lint errors
2017-01-03 09:12:54 +08:00
Rajesh Taneja
63be664507
MDL-57137 behat: Subcategory has black space before name
2016-12-07 08:49:04 +08:00
Alexander Melihov
834cc0ed66
MDL-57137 quiz: Create question category with specified parent category
...
Fix question category generator bug. Now it is possible to specify parent category of subcategory, supply only name of parent category
2016-11-25 08:59:32 +03:00
Jake Dallimore
d7d4a09707
MDL-54864 core_question: Enforce context,stamp uniqueness for category
...
Added an upgrade step to remove duplicate stamps, added a unique index
on (contextid, stamp) and modified the question_category edit code such
that stamp duplication in the same context is not permitted.
2016-08-22 09:44:52 +08:00
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
Pau Ferrer Ocaña
176bcaa928
MDL-53409 question: Add tests for core_question_update_flag
2016-03-18 15:08:22 +01:00
Pau Ferrer Ocaña
7361b9682e
MDL-53409 question: New WS core_question_update_flag
2016-03-18 15:08:17 +01:00
Rajesh Taneja
42ad096fdb
MDL-46891 Behat: Added support for behat 3
2016-03-11 10:51:15 +08:00
Andrew Nicols
650c0086f9
MDL-52339 question: Fix question attempt removal for MySQL
...
Derived table support was altered in MySQL 5.7 changing the way in which
DELETE FROM works in some cases.
This change modifies the way in which deletion occurs by selecting all IDs
and batching them into groups of 1000.
2016-02-05 09:10:09 +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
Tim Hunt
e7df2335b6
MDL-50373 questions: random Qs must not pick deleted or sub- questions
...
This was a regression caused by MDL-6340. I missed the necessary
AND parent = 0 AND hidden = 0
in one query of the question table.
2015-05-27 20:32:47 +01: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
bb93fc24aa
MDL-6340 quiz: avoid reusing random questions between attempts
...
There are several improvements over what we had before:
1. We track all the questions seen in the the student's previous
quiz attempts, so that when they start a new quiz attempt, they get
questions they have not seen before if possible.
2. When there are no more unseen questions, we start repeating, but
always taking from the questions with the fewest attempts so far.
3. A similar logic is applied with variants within one question.
There is lots of credit to go around here. Oleg Sychev's students Alex
Shkarupa, Sergei Bastrykin and Darya Beda all worked on this over
several years, helping to clarify the problem and shape the best
solution. In the end, their various attempts were rewritten into this
final patch by me.
2015-03-26 17:45:49 +00: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
Mark Nelson
58940b190a
MDL-40063 mod_quiz: replaced 'addcategory' add_to_log call with an event
2014-04-10 20:38:34 -07: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