Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jan 2013 at 19:48 UTC
Updated:
29 Jul 2014 at 21:44 UTC
Follow up for #1667742: Add abstracted dialog to core (resolves accessibility bug)
This is from the patch committed in #1667742-110: Add abstracted dialog to core (resolves accessibility bug)
+++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/DialogTest.phpundefined
@@ -0,0 +1,32 @@
+ /**
+ * Ensure elements with #ajax['dialog'] render correctly.
+ */
+ function testDialog() {
+ // Ensure the elements render without notices or exceptions.
+ $this->drupalGet('ajax-test/dialog');
+
+ // @todo What else should we assert?
+ }
+
+}
So currently no way to test Dialog behavior applied to a button or link.
Complete the testDialog function in Drupal\system\Tests\Ajax. and remove // @todo What else should we assert?.
testDialog function.
Comments
Comment #1
jibranTagging.
Comment #2
jibranAll the tests are added in #1870764: Add an ajax command which makes it easy to use the dialog API in complex cases