MDL-39815 mod_glossary: Fixing behat test

This commit is contained in:
David Monllao 2013-07-11 09:36:32 +02:00
parent cfba97e9a5
commit 3e6899989a

View file

@ -34,7 +34,7 @@ Feature: A teacher can choose whether to provide a printer-friendly glossary ent
| Concept | Just a test concept | | Concept | Just a test concept |
| Definition | Concept definition | | Definition | Concept definition |
Then "Printer-friendly version" "link" should exists Then "Printer-friendly version" "link" should exists
And "//*[contains(concat(' ', @class, ' '), ' printicon ')]/descendant::a[contains(@href, 'print.php')]" "xpath_element" should exists And "//*[contains(concat(' ', @class, ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should exists
And I follow "Printer-friendly version" And I follow "Printer-friendly version"
And I should see "Just a test concept" And I should see "Just a test concept"
@ -51,4 +51,4 @@ Feature: A teacher can choose whether to provide a printer-friendly glossary ent
| Concept | Just a test concept | | Concept | Just a test concept |
| Definition | Concept definition | | Definition | Concept definition |
Then "Printer-friendly version" "link" should not exists Then "Printer-friendly version" "link" should not exists
And "//*[contains(concat(' ', @class, ' '), ' printicon ')]/descendant::a[contains(@href, 'print.php')]" "xpath_element" should not exists And "//*[contains(concat(' ', @class, ' '), ' printicon ')][contains(@href, 'print.php')]" "xpath_element" should not exists