8000 FORMS-15321: added delay in rule editor authoring tests by arunattri26 · Pull Request #1423 · adobe/aem-core-forms-components · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FORMS-15321: added delay in rule editor authoring tests #1423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions ui.tests/test-module/specs/ruleeditor/ruleEditor.authoring.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ describe('Rule editor authoring sanity for core-components',function(){
// Edit rule option not existing on button toolbar
cy.get(formsSelectors.ruleEditor.action.editRule).should("exist");
cy.initializeEventHandlerOnChannel("af-rule-editor-initialized").as("isRuleEditorInitialized");
cy.wait(1000);
cy.get(formsSelectors.ruleEditor.action.editRule).click();

// click on create option from rule editor header
// commenting the below check as 'af-rule-editor-initialized' event does not seem to be triggered in 650
//cy.get("@isRuleEditorInitialized").its('done').should('equal', true);
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.createRuleButton).should("be.visible").click();

cy.wait(1000);
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.createRuleButton).should("be.visible").click({force: true});
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.sideToggleButton + ":first").click();

// // Forms Objects option is not existing on side panel
Expand Down Expand Up @@ -67,7 +68,7 @@ describe('Rule editor authoring sanity for core-components',function(){
cy.getRuleEditorIframe().find(".terminal-view.AFCOMPONENT.VARIABLE coral-overlay.is-open .expression-selectlist coral-selectlist-item:first").click({force: true});

cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.saveRule).should("exist");
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.saveRule).click();
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.saveRule).click({force: true});

// check if rule is created
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.ruleSummary.CREATED_RULE_650).should("exist");
Expand All @@ -81,11 +82,13 @@ describe('Rule editor authoring sanity for core-components',function(){
// Edit rule option not existing on button toolbar
cy.get(formsSelectors.ruleEditor.action.editRule).should("exist");
cy.initializeEventHandlerOnChannel("af-rule-editor-initialized").as("isRuleEditorInitialized");
cy.wait(1000);
cy.get(formsSelectors.ruleEditor.action.editRule).click();

// click on create option from rule editor header
// commenting the below check as 'af-rule-editor-initialized' event does not seem to be triggered in 650
//cy.get("@isRuleEditorInitialized").its('done').should('equal', true);
cy.wait(1000);
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.createRuleButton).should("be.visible").click();

cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.sideToggleButton + ":first").click();
Expand Down Expand Up @@ -127,6 +130,7 @@ describe('Rule editor authoring sanity for core-components',function(){
// Edit rule option not existing on button toolbar
cy.get(formsSelectors.ruleEditor.action.editRule).should("exist");
cy.initializeEventHandlerOnChannel("af-rule-editor-initialized").as("isRuleEditorInitialized");
cy.wait(1000);
cy.get(formsSelectors.ruleEditor.action.editRule).click();

// click on create option from rule editor header
Expand All @@ -144,6 +148,7 @@ describe('Rule editor authoring sanity for core-components',function(){
}

const createSubmissionSuccessRule = function() {
cy.wait(1000);
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.createRuleButton).should("be.visible").click();

// select the event for which rule is to written
Expand Down Expand Up @@ -178,6 +183,7 @@ describe('Rule editor authoring sanity for core-components',function(){
}

const createSubmissionErrorRule = function() {
cy.wait(1000);
cy.getRuleEditorIframe().find(formsSelectors.ruleEditor.action.createRuleButton).should("be.visible").click();

// select the event for which rule is to written
Expand Down Expand Up @@ -304,6 +310,7 @@ describe('Rule editor authoring sanity for core-components',function(){
// Edit rule option not existing on button toolbar
cy.get(formsSelectors.ruleEditor.action.editRule).should("exist");
cy.initializeEventHandlerOnChannel("af-rule-editor-initialized").as("isRuleEditorInitialized");
cy.wait(1000);
cy.get(formsSelectors.ruleEditor.action.editRule).click();

// click on create option from rule editor header
Expand Down
Loading
0