fix(test): dashboard_link.js
This commit is contained in:
parent
30f6ad6225
commit
e97f709e5b
2 changed files with 5 additions and 5 deletions
|
|
@ -67,8 +67,7 @@ context("Dashboard links", () => {
|
|||
cy.visit("/app/user");
|
||||
cy.visit("/app/user/Administrator");
|
||||
cy.select_form_tab("Connections");
|
||||
cy.get('[data-doctype="Contact"]').should("contain", "Contact");
|
||||
cy.findByText("Connections");
|
||||
cy.get('.document-link[data-doctype="Contact"]').contains("Contact");
|
||||
cy.window()
|
||||
.its("cur_frm")
|
||||
.then((cur_frm) => {
|
||||
|
|
@ -79,8 +78,9 @@ context("Dashboard links", () => {
|
|||
},
|
||||
];
|
||||
cur_frm.dashboard.render_report_links();
|
||||
cy.get('[data-report="Website Analytics"]').contains("Website Analytics").click();
|
||||
cy.findByText("Website Analytics");
|
||||
cy.get('.document-link[data-report="Website Analytics"]')
|
||||
.contains("Website Analytics")
|
||||
.click();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ Cypress.Commands.add("new_form", (doctype) => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add("select_form_tab", (label) => {
|
||||
cy.get(".form-tabs-list [data-toggle='tab']").contains(label).click();
|
||||
cy.get(".form-tabs-list [data-toggle='tab']").contains(label).click().wait(500);
|
||||
});
|
||||
|
||||
Cypress.Commands.add("go_to_list", (doctype) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue