fix(editor): Fix disappearing NDV header in code nodes (#7290)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
committed by
GitHub
parent
4bc9164032
commit
7ebf8f327a
@@ -75,6 +75,7 @@ export class NDV extends BasePage {
|
||||
resourceMapperRemoveFieldButton: (fieldName: string) => cy.getByTestId(`remove-field-button-${fieldName}`),
|
||||
resourceMapperColumnsOptionsButton: () => cy.getByTestId('columns-parameter-input-options-container'),
|
||||
resourceMapperRemoveAllFieldsOption: () => cy.getByTestId('action-removeAllFields'),
|
||||
sqlEditorContainer: () => cy.getByTestId('sql-editor-container'),
|
||||
};
|
||||
|
||||
actions = {
|
||||
|
||||
@@ -142,6 +142,12 @@ export class WorkflowPage extends BasePage {
|
||||
this.getters.nodeCreatorSearchBar().type(nodeDisplayName);
|
||||
this.getters.nodeCreatorSearchBar().type('{enter}');
|
||||
if (opts?.action) {
|
||||
// Expand actions category if it's collapsed
|
||||
nodeCreator.getters.getCategoryItem('Actions').parent().then(($el) => {
|
||||
if ($el.attr('data-category-collapsed') === 'true') {
|
||||
nodeCreator.getters.getCategoryItem('Actions').click();
|
||||
}
|
||||
});
|
||||
nodeCreator.getters.getCreatorItem(opts.action).click();
|
||||
} else if (!opts?.keepNdvOpen) {
|
||||
cy.get('body').type('{esc}');
|
||||
|
||||
Reference in New Issue
Block a user