bots: Remove feedback cross realm bot.

This completes the remaining pieces of removing this missed in
d70e799466 (mostly in tests).
Backported to 2.1.x branch.
This commit is contained in:
Vishnu KS
2020-01-18 13:26:19 +05:30
committed by Mateusz Mandera
parent cae803e8a9
commit cee6227f53
9 changed files with 26 additions and 38 deletions

View File

@@ -143,7 +143,7 @@ casper.then(function () {
casper.then(function () {
casper.click('*[title="Narrow to your private messages with Cordelia Lear"]');
});
casper.waitUntilVisible('li[data-user-ids-string="9"].expanded_private_message.active-sub-filter', function () {
casper.waitUntilVisible('li[data-user-ids-string="8"].expanded_private_message.active-sub-filter', function () {
casper.page.sendEvent('keypress', 'c');
});

View File

@@ -263,15 +263,15 @@ run_test('validate', () => {
});
run_test('get_invalid_recipient_emails', () => {
const feedback_bot = {
email: 'feedback@example.com',
const welcome_bot = {
email: 'welcome-bot@example.com',
user_id: 124,
full_name: 'Feedback Bot',
full_name: 'Welcome Bot',
};
page_params.cross_realm_bots = [feedback_bot];
page_params.cross_realm_bots = [welcome_bot];
page_params.user_id = 30;
people.initialize();
compose_state.private_message_recipient('feedback@example.com');
compose_state.private_message_recipient('welcome-bot@example.com');
assert.deepEqual(compose.get_invalid_recipient_emails(), []);
});