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

test(RHINENG-8182): Update cypress tests after PF5 upgrade #2146

Merged
merged 12 commits into from
Apr 18, 2024

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Feb 8, 2024

Fixes https://issues.redhat.com/browse/RHINENG-8182.

Follows up on: #2141
Blocked by RedHatInsights/frontend-components#1968

This enables back the cypress test in Travis CI and makes them pass by updating selectors after PF5 migration.

@gkarat gkarat added the tests label Feb 8, 2024
@gkarat gkarat self-assigned this Feb 8, 2024
@gkarat gkarat added dependencies Pull requests that update a dependency file and removed dependencies Pull requests that update a dependency file labels Feb 8, 2024
gkarat added a commit to gkarat/insights-inventory-frontend that referenced this pull request Feb 9, 2024
This is trade-off to not to block the upgrade of PF. Will be enabled back in RedHatInsights#2146.
gkarat added a commit to gkarat/insights-inventory-frontend that referenced this pull request Feb 9, 2024
This is trade-off to not to block the upgrade of PF. Will be enabled back in RedHatInsights#2146.
@gkarat gkarat changed the title test(RHINENG-3032): Update cypress tests after PF5 upgrade test(RHINENG-8182): Update cypress tests after PF5 upgrade Feb 9, 2024
@gkarat gkarat force-pushed the rhineng-3032-cypress branch from fedbb03 to 296e88e Compare February 9, 2024 15:17
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 189 lines in your changes are missing coverage. Please review.

Project coverage is 57.25%. Comparing base (0f4b656) to head (4419f18).

Files Patch % Lines
src/routes/InventoryTable.cy.js 0.00% 81 Missing ⚠️
src/components/GroupsTable/GroupsTable.cy.js 0.00% 37 Missing ⚠️
src/components/GroupSystems/GroupSystems.cy.js 0.00% 28 Missing ⚠️
src/components/InventoryTable/InventoryTable.cy.js 0.00% 16 Missing ⚠️
...ts/InventoryGroupDetail/InventoryGroupDetail.cy.js 0.00% 12 Missing ⚠️
...components/ImmutableDevices/ImmutableDevices.cy.js 0.00% 6 Missing ⚠️
src/routes/InventoryDetail.cy.js 0.00% 4 Missing ⚠️
...nventoryGroups/Modals/AddSystemsToGroupModal.cy.js 0.00% 3 Missing ⚠️
...ponents/InventoryGroupDetail/GroupDetailInfo.cy.js 0.00% 1 Missing ⚠️
...ents/InventoryGroups/Modals/DeleteGroupModal.cy.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2146       +/-   ##
===========================================
+ Coverage   43.04%   57.25%   +14.20%     
===========================================
  Files         199      199               
  Lines        6300     6295        -5     
  Branches     1764     1764               
===========================================
+ Hits         2712     3604      +892     
+ Misses       3588     2691      -897     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gkarat gkarat force-pushed the rhineng-3032-cypress branch from 296e88e to d26d4be Compare February 9, 2024 15:49
@computercamplove
Copy link
Contributor

/retest

gkarat added a commit that referenced this pull request Feb 20, 2024
…#2141)

* chore: Upgrade React and PF with other affected packages

* chore: Running pf-codemods fix

* chore: Wrap icons

* chore(TopBar): Rewrite Dropdown

* chore: Install jest-environment-jsdom

* chore: Add missing conditional filter type

* chore: Update SkeletonTable columns prop

* chore: Fix the jest warning regarding testUrl

* chore: Fix "import statement" issue with Jest

* chore(GroupDetailHeader): Rebuild Dropdown

* chore: Run classnames fix

* chore: Update test snapshots

* chore: Update hook tests

* chore: Update SkeletonTable props

* chore: Fix the rest of unit tests after migration

* chore: Use cypress/react18, tweak toggle text selectors

* chore(InventoryTable): Provide count to PrimaryToolbar

* chore: Temporarily disable cypress tests in Travis CI

This is trade-off to not to block the upgrade of PF. Will be enabled back in #2146.

* chore(ActionDropdownItem): Fix and preserve dropdown style

* chore(SearchableGroupFilter): Keep checkboxes and styling
@gkarat gkarat force-pushed the rhineng-3032-cypress branch from e1a59cc to 0258141 Compare February 21, 2024 15:31
@gkarat gkarat force-pushed the rhineng-3032-cypress branch from 0258141 to 2eb9ad0 Compare April 11, 2024 14:56
@gkarat gkarat marked this pull request as ready for review April 11, 2024 14:57
@gkarat gkarat requested a review from a team as a code owner April 11, 2024 14:57
@gkarat gkarat force-pushed the rhineng-3032-cypress branch from 2eb9ad0 to c72bc81 Compare April 12, 2024 14:04
@gkarat
Copy link
Contributor Author

gkarat commented Apr 17, 2024

/retest

@gkarat
Copy link
Contributor Author

gkarat commented Apr 17, 2024

@computercamplove, by any chance, is there something in e2e tests that caused by this PR?

Copy link
Contributor

@mkholjuraev mkholjuraev left a comment

Choose a reason for hiding this comment

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

@gkarat thank you, I could not spot anything to suggest. All looks great!

@computercamplove
Copy link
Contributor

computercamplove commented Apr 18, 2024

@computercamplove, by any chance, is there something in e2e tests that caused by this PR?

no, 1 test is failed that i created for PR for @bastilian, i am going to disable it, looks like this PR is still in progress. Thank you for reminder, you can ignore it

@gkarat gkarat merged commit 6ad8fe0 into RedHatInsights:master Apr 18, 2024
1 of 2 checks passed
@gkarat gkarat deleted the rhineng-3032-cypress branch April 18, 2024 14:02
@gkarat
Copy link
Contributor Author

gkarat commented Apr 18, 2024

🎉 This PR is included in version 1.67.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants