fix(minor): test + tabs

This commit is contained in:
Rushabh Mehta 2022-06-09 14:17:43 +05:30
parent da9ac52ffb
commit e66cd830fb
2 changed files with 2 additions and 2 deletions

View file

@ -274,7 +274,7 @@ Cypress.Commands.add('save', () => {
Cypress.Commands.add('hide_dialog', () => {
cy.wait(400);
cy.get_open_dialog().find('.btn-modal-close').click({force: true});
cy.get('.btn-modal-close:visible').click({force: true});
cy.get('.modal:visible').should('not.exist');
});

View file

@ -3,7 +3,7 @@ export default class Tab {
this.parent = parent;
this.df = df || {};
this.frm = frm;
this.doctype = 'User';
this.doctype = this.frm.doctype;
this.label = this.df && this.df.label;
this.tabs_list = tabs_list;
this.tabs_content = tabs_content;