@@ -21,7 +21,6 @@ context('Control Barcode', () => { | |||||
get_dialog_with_barcode().as('dialog'); | get_dialog_with_barcode().as('dialog'); | ||||
cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | ||||
.focus() | |||||
.type('123456789') | .type('123456789') | ||||
.blur(); | .blur(); | ||||
cy.get('.frappe-control[data-fieldname=barcode] svg[data-barcode-value="123456789"]') | cy.get('.frappe-control[data-fieldname=barcode] svg[data-barcode-value="123456789"]') | ||||
@@ -38,7 +37,6 @@ context('Control Barcode', () => { | |||||
get_dialog_with_barcode().as('dialog'); | get_dialog_with_barcode().as('dialog'); | ||||
cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | ||||
.focus() | |||||
.type('123456789') | .type('123456789') | ||||
.blur(); | .blur(); | ||||
cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | cy.get('.frappe-control[data-fieldname=barcode]').findByRole('textbox') | ||||
@@ -103,6 +103,7 @@ context('Control Date, Time and DateTime', () => { | |||||
input_value: '12-02-2019 11:00' // admin timezone (Asia/Kolkata) | input_value: '12-02-2019 11:00' // admin timezone (Asia/Kolkata) | ||||
} | } | ||||
]; | ]; | ||||
datetime_formats.forEach(d => { | datetime_formats.forEach(d => { | ||||
it(`test datetime format ${d.date_format} ${d.time_format}`, () => { | it(`test datetime format ${d.date_format} ${d.time_format}`, () => { | ||||
cy.set_value('System Settings', 'System Settings', { | cy.set_value('System Settings', 'System Settings', { | ||||
@@ -14,7 +14,7 @@ context('Timeline Email', () => { | |||||
cy.wait(700); | cy.wait(700); | ||||
}); | }); | ||||
it('Adding email and verifying timeline content for email attachment, deleting attachment and ToDo', () => { | |||||
it('Adding email and verifying timeline content for email attachment', () => { | |||||
cy.visit('/app/todo'); | cy.visit('/app/todo'); | ||||
cy.get('.list-row > .level-left > .list-subject').eq(0).click(); | cy.get('.list-row > .level-left > .list-subject').eq(0).click(); | ||||
@@ -43,7 +43,9 @@ context('Timeline Email', () => { | |||||
cy.get('#page-Communication > .page-head > .container > .row > .col > .standard-actions > .menu-btn-group > .btn').click(); | cy.get('#page-Communication > .page-head > .container > .row > .col > .standard-actions > .menu-btn-group > .btn').click(); | ||||
cy.get('#page-Communication > .page-head > .container > .row > .col > .standard-actions > .menu-btn-group > .dropdown-menu > li > .grey-link').eq(9).click(); | cy.get('#page-Communication > .page-head > .container > .row > .col > .standard-actions > .menu-btn-group > .dropdown-menu > li > .grey-link').eq(9).click(); | ||||
cy.get('.modal.show > .modal-dialog > .modal-content > .modal-footer > .standard-actions > .btn-primary').click(); | cy.get('.modal.show > .modal-dialog > .modal-content > .modal-footer > .standard-actions > .btn-primary').click(); | ||||
}); | |||||
it('Deleting attachment and ToDo', () => { | |||||
cy.visit('/app/todo'); | cy.visit('/app/todo'); | ||||
cy.get('.list-row > .level-left > .list-subject > .level-item.ellipsis > .ellipsis').eq(0).click(); | cy.get('.list-row > .level-left > .list-subject > .level-item.ellipsis > .ellipsis').eq(0).click(); | ||||
@@ -901,10 +901,11 @@ def dictify(arg): | |||||
def add_user_info(user, user_info): | def add_user_info(user, user_info): | ||||
if user not in user_info: | if user not in user_info: | ||||
info = frappe.db.get_value("User", | info = frappe.db.get_value("User", | ||||
user, ["full_name", "user_image", "name", 'email'], as_dict=True) or frappe._dict() | |||||
user, ["full_name", "user_image", "name", 'email', 'time_zone'], as_dict=True) or frappe._dict() | |||||
user_info[user] = frappe._dict( | user_info[user] = frappe._dict( | ||||
fullname = info.full_name or user, | fullname = info.full_name or user, | ||||
image = info.user_image, | image = info.user_image, | ||||
name = user, | name = user, | ||||
email = info.email | |||||
email = info.email, | |||||
time_zone = info.time_zone | |||||
) | ) |