mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Add padding to checkboxes and fix HTML.
The ‘for’ attribute is not valid HTML in the case of this because the emails are invalid character sets and the input has no ID with the email. This changes it to a data-name which is still searchable but doesn’t interfere with typical input behavior. The checkboxes no longer float-left, fixing an issue with the subscribe buttons leaning right in narrow windows. Fixes: #1491.
This commit is contained in:
committed by
Tim Abbott
parent
ce4ff5850c
commit
5de33c94be
@@ -19,19 +19,19 @@ casper.waitForText('Waseemio', function () {
|
||||
casper.test.assertTextExists('Create stream Waseemio', 'Modal for specifying new stream users');
|
||||
});
|
||||
casper.then(function () {
|
||||
casper.test.assertExists('#user-checkboxes [for="cordelia@zulip.com"]', 'Original user list contains Cordelia');
|
||||
casper.test.assertExists('#user-checkboxes [for="hamlet@zulip.com"]', 'Original user list contains King Hamlet');
|
||||
casper.test.assertExists('#user-checkboxes [data-name="cordelia@zulip.com"]', 'Original user list contains Cordelia');
|
||||
casper.test.assertExists('#user-checkboxes [data-name="hamlet@zulip.com"]', 'Original user list contains King Hamlet');
|
||||
});
|
||||
casper.then(function () {
|
||||
casper.test.info("Filtering user list with keyword 'cor'");
|
||||
casper.fill('form#stream_creation_form', {user_list_filter: 'cor'});
|
||||
});
|
||||
casper.then(function () {
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [for="cordelia@zulip.com"]'),
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [data-name="cordelia@zulip.com"]'),
|
||||
true,
|
||||
"Cordelia is visible"
|
||||
);
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [for="hamlet@zulip.com"]'),
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [data-name="hamlet@zulip.com"]'),
|
||||
false,
|
||||
"King Hamlet is not visible"
|
||||
);
|
||||
@@ -41,11 +41,11 @@ casper.then(function () {
|
||||
casper.fill('form#stream_creation_form', {user_list_filter: ''});
|
||||
});
|
||||
casper.then(function () {
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [for="cordelia@zulip.com"]'),
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [data-name="cordelia@zulip.com"]'),
|
||||
true,
|
||||
"Cordelia is visible again"
|
||||
);
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [for="hamlet@zulip.com"]'),
|
||||
casper.test.assertEquals(casper.visible('#user-checkboxes [data-name="hamlet@zulip.com"]'),
|
||||
true,
|
||||
"King Hamlet is visible again"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user