瀏覽代碼

Merge pull request #15730 from shariquerik/fix-report-view-ui-test

test: flaky report_view UI test fix
version-14
mergify[bot] 3 年之前
committed by GitHub
父節點
當前提交
3f25d1c6b2
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      cypress/integration/report_view.js

+ 2
- 2
cypress/integration/report_view.js 查看文件

@@ -7,8 +7,6 @@ context('Report View', () => {
cy.visit('/app/website'); cy.visit('/app/website');
cy.insert_doc('DocType', custom_submittable_doctype, true); cy.insert_doc('DocType', custom_submittable_doctype, true);
cy.clear_cache(); cy.clear_cache();
});
it('Field with enabled allow_on_submit should be editable.', () => {
cy.insert_doc(doctype_name, { cy.insert_doc(doctype_name, {
'title': 'Doc 1', 'title': 'Doc 1',
'description': 'Random Text', 'description': 'Random Text',
@@ -16,6 +14,8 @@ context('Report View', () => {
// submit document // submit document
'docstatus': 1 'docstatus': 1
}, true).as('doc'); }, true).as('doc');
});
it('Field with enabled allow_on_submit should be editable.', () => {
cy.intercept('POST', 'api/method/frappe.client.set_value').as('value-update'); cy.intercept('POST', 'api/method/frappe.client.set_value').as('value-update');
cy.visit(`/app/List/${doctype_name}/Report`); cy.visit(`/app/List/${doctype_name}/Report`);
// check status column added from docstatus // check status column added from docstatus


Loading…
取消
儲存