test: failing list_paging UI test

This commit is contained in:
Shariq Ansari 2022-03-17 11:18:12 +05:30
parent da080a4091
commit bc48c03da7
2 changed files with 9 additions and 5 deletions

View file

@ -31,5 +31,8 @@ context('List Paging', () => {
cy.get('.list-paging-area .btn-group .btn-paging[data-value="500"]').click();
cy.get('.list-paging-area .list-count').should('contain.text', '500 of');
cy.get('.list-paging-area .btn-more').click();
cy.get('.list-paging-area .list-count').should('contain.text', '1000 of');
});
});

View file

@ -138,11 +138,12 @@ def create_contact_records():
def create_multiple_todo_records():
if frappe.db.get_all('ToDo', {'description': 'Multiple ToDo 1'}):
return
for index in range(501):
frappe.get_doc({
'doctype': 'ToDo',
'description': 'Multiple ToDo {}'.format(index+1)
}).insert()
query = "INSERT INTO `tabToDo` (`name`, `description`) VALUES ('1001', 'Multiple ToDo 1')"
for index in range(1000):
query = query + ", ('100{}', 'Multiple ToDo {}')".format(index+2,index+2)
frappe.db.sql(query)
def insert_contact(first_name, phone_number):
doc = frappe.get_doc({