mirror of https://github.com/zulip/zulip.git
casper: Use data-user-id for user checkboxes.
In the stream-create UI, we can look for data-user-id now.
This commit is contained in:
parent
a0bd93d720
commit
0f6192cf6b
|
@ -1,7 +1,8 @@
|
|||
var common = require('../casper_lib/common.js');
|
||||
|
||||
function user_checkbox(email) {
|
||||
return '#user-checkboxes [data-email="' + email + '"]';
|
||||
var user_id = common.get_user_id(email);
|
||||
return '#user-checkboxes [data-user-id="' + user_id + '"]';
|
||||
}
|
||||
|
||||
common.start_and_log_in();
|
||||
|
|
Loading…
Reference in New Issue