perf: Add tailwind to editor and design system (#9032)

This commit is contained in:
Csaba Tuncsik
2024-05-09 14:12:13 +02:00
committed by GitHub
parent 5025d209ca
commit 1c1e4443f4
15 changed files with 354 additions and 220 deletions

View File

@@ -79,6 +79,7 @@ describe('Workflow tags', () => {
wf.getters.nthTagPill(1).click();
wf.getters.tagsDropdown().find('.el-tag__close').first().click();
cy.get('body').click(0, 0);
wf.getters.workflowTags().click();
wf.getters.tagPills().should('have.length', TEST_TAGS.length - 1);
});
@@ -88,6 +89,7 @@ describe('Workflow tags', () => {
wf.getters.nthTagPill(1).click();
wf.getters.tagsInDropdown().filter('.selected').first().click();
cy.get('body').click(0, 0);
wf.getters.workflowTags().click();
wf.getters.tagPills().should('have.length', TEST_TAGS.length - 1);
});
});

View File

@@ -75,7 +75,7 @@ describe('Resource Locator', () => {
ndv.actions.setInvalidExpression({ fieldName: 'fieldId' });
ndv.getters.nodeParameters().click(); // remove focus from input, hide expression preview
ndv.getters.inputDataContainer().click(); // remove focus from input, hide expression preview
ndv.getters.resourceLocatorInput('rlc').click();

View File

@@ -325,7 +325,7 @@ describe('NDV', () => {
ndv.actions.setInvalidExpression({ fieldName: 'fieldId', delay: 200 });
ndv.getters.nodeParameters().click(); // remove focus from input, hide expression preview
ndv.getters.inputDataContainer().click(); // remove focus from input, hide expression preview
ndv.getters.parameterInput('remoteOptions').click();

View File

@@ -145,7 +145,7 @@ export class WorkflowPage extends BasePage {
},
addInitialNodeToCanvas: (
nodeDisplayName: string,
opts?: { keepNdvOpen?: boolean; action?: string, isTrigger?: boolean},
opts?: { keepNdvOpen?: boolean; action?: string; isTrigger?: boolean },
) => {
this.getters.canvasPlusButton().click();
this.getters.nodeCreatorSearchBar().type(nodeDisplayName);
@@ -318,7 +318,6 @@ export class WorkflowPage extends BasePage {
this.getters.workflowTagsInput().type(tag);
this.getters.workflowTagsInput().type('{enter}');
});
cy.realPress('Tab');
// For a brief moment the Element UI tag component shows the tags as(+X) string
// so we need to wait for it to disappear
this.getters.workflowTagsContainer().should('not.contain', `+${tags.length}`);