Skip to content
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

Upgrade formik-pf to bring fix for submit issue #272

Closed
wants to merge 1 commit into from

Conversation

rohitkrai03
Copy link
Contributor

No description provided.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 5, 2022
@rohitkrai03 rohitkrai03 requested review from rottencandy and removed request for divyanshiGupta and debsmita1 December 5, 2022 13:16
@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #272 (4862ca4) into main (2a65883) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #272   +/-   ##
=======================================
  Coverage   73.63%   73.63%           
=======================================
  Files         434      434           
  Lines        9175     9175           
  Branches     2455     2455           
=======================================
  Hits         6756     6756           
  Misses       2281     2281           
  Partials      138      138           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a65883...4862ca4. Read the comment docs.

Copy link
Contributor

@rottencandy rottencandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 6, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rohitkrai03, rottencandy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rottencandy
Copy link
Contributor

/retest

3 similar comments
@rottencandy
Copy link
Contributor

/retest

@rottencandy
Copy link
Contributor

/retest

@rottencandy
Copy link
Contributor

/retest

@rottencandy
Copy link
Contributor

@rohitkrai03 looks like e2e tests are failing because triggering next button click doesn't work anymore, I replaced all .trigger('click') calls with .click({ force: true }) and it seems to work:

diff --git a/integration-tests/support/pages/AddComponentPage.ts b/integration-tests/support/pages/AddComponentPage.ts
@@ -34,7 +34,7 @@ export class AddComponentPage extends AbstractWizardPage {
   }
 
   clickNext() {
-    cy.get(addComponentPagePO.next).trigger('click');
+    cy.get(addComponentPagePO.next).click({ force: true });
   }
 
   loginByToken(username: string, token: string){
diff --git a/integration-tests/support/pages/ComponentsPage.ts b/integration-tests/support/pages/ComponentsPage.ts
@@ -76,7 +76,7 @@ export class ComponentPage extends AbstractWizardPage {
   }
 
   createApplication() {
-    cy.get(ComponentsPagePO.create).trigger('click');
+    cy.get(ComponentsPagePO.create).click({ force: true });
     cy.get(ComponentsPagePO.create).should('be.disabled');
     Common.waitForLoad();
   }
diff --git a/integration-tests/support/pages/CreateApplicationPage.ts b/integration-tests/support/pages/CreateApplicationPage.ts
@@ -31,6 +31,6 @@ export class CreateApplicationPage extends AbstractWizardPage {
   }
 
   clickNext() {
-    cy.get(createApplicationPagePO.next).trigger('click');
+    cy.get(createApplicationPagePO.next).click({ force: true });
   }
 }
diff --git a/integration-tests/support/pages/hacbs/AddIntegrationTestPage.ts b/integration-tests/support/pages/hacbs/AddIntegrationTestPage.ts
@@ -14,7 +14,7 @@ export class AddIntegrationTestPage {
         cy.get(addIntegrationTestStepPO.optionalreleaseCheckbox).click();
     }
     clickNext() {
-        cy.get(addIntegrationTestStepPO.next).trigger('click');
+        cy.get(addIntegrationTestStepPO.next).click({ force: true });
     }
     clickAdd() {
         cy.get(addIntegrationTestStepPO.add).click();
diff --git a/integration-tests/support/pages/hacbs/CreateBuildPage.ts b/integration-tests/support/pages/hacbs/CreateBuildPage.ts
@@ -2,6 +2,6 @@ import { createBuildStepPO } from '../../pageObjects/hacbs-po';
 
 export class CreateBuildPage {
     clickNext() {
-        cy.get(createBuildStepPO.next).trigger('click');
+        cy.get(createBuildStepPO.next).click({ force: true });
     }
 }
diff --git a/integration-tests/utils/Applications.ts b/integration-tests/utils/Applications.ts
@@ -23,6 +23,7 @@ export class Applications {
     cy.testA11y(`${pageTitles.createApp} page`);
     createApplicationPage.setApplicationName(name);
     createApplicationPage.clickNext();
+    createApplicationPage.clickNext();
     cy.testA11y(`Select source form`);
   }
 }

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 12, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 12, 2022

New changes are detected. LGTM label has been removed.

@rottencandy
Copy link
Contributor

@rohitkrai03 sorry I missed the hacbs pages, can you try these changes too

diff --git a/integration-tests/support/pages/ComponentsPage.ts b/integration-tests/support/pages/ComponentsPage.ts
index 1768341..1eb3416 100644
@@ -76,6 +76,7 @@ export class ComponentPage extends AbstractWizardPage {
   }
 
   createApplication() {
+    cy.get(ComponentsPagePO.create).click({ force: true });
     cy.get(ComponentsPagePO.create).click({ force: true });
     cy.get(ComponentsPagePO.create).should('be.disabled');
     Common.waitForLoad();
diff --git a/integration-tests/utils/HACBSApplications.ts b/integration-tests/utils/HACBSApplications.ts
index d0ce90a..41523ff 100644
@@ -106,6 +106,11 @@ export function addIntegrationTestStep(displayName: string, optionalForRelease:
     }
 
     cy.get('body').then(body => {
-        (body.find('button[type="submit"]').length > 0)? addIntegrationTestPage.clickNext() : addIntegrationTestPage.clickAdd();
+        if (body.find('button[type="submit"]').length > 0) {
+          addIntegrationTestPage.clickNext();
+          addIntegrationTestPage.clickNext();
+        } else {
+          addIntegrationTestPage.clickAdd()
+        };
     });
 }

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 13, 2022

@rohitkrai03: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rottencandy
Copy link
Contributor

/retest

1 similar comment
@rottencandy
Copy link
Contributor

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 17, 2022
@openshift-merge-robot
Copy link
Contributor

@rohitkrai03: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rohitkrai03
Copy link
Contributor Author

Closing this PR for now. Will raise another one once we have the e2e tests fixed. This PR require updates to e2e tests and since they are already broken due to different reasons its hard to debug the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants