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:
Steve Howell 2020-01-27 16:48:26 +00:00
parent a0bd93d720
commit 0f6192cf6b
1 changed files with 2 additions and 1 deletions

View File

@ -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();