Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Refactor e2e tests 4/5/6/8, fix autoScrolling issue #1560

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

unsortedhashsets
Copy link
Contributor

Hi!

With that PR I want to update the new part of E2E tests (smaller + stable + with common commands)

Also fixed the strange issue in the cypress dashboard with the lowest (hidden!) frame resizing (issue was faced only in cypress, I did not found any related issue) -> scrollBehavior: false

Before:
Screenshot from 2023-03-27 13-22-45

After:
Screenshot from 2023-03-27 13-23-49

Related:

  • Issue-1099 (can be related to API keys part and also general stabilization)

@unsortedhashsets unsortedhashsets requested a review from a team March 27, 2023 11:49
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
18.2% 18.2% Duplication

@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #1560 (cc2361b) into main (1f87445) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1560   +/-   ##
=======================================
  Coverage   57.00%   57.00%           
=======================================
  Files          68       68           
  Lines        2056     2056           
  Branches      470      470           
=======================================
  Hits         1172     1172           
  Misses        840      840           
  Partials       44       44           
Impacted Files Coverage Δ
src/components/VisualizationStep.tsx 62.65% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -35,6 +38,13 @@ Cypress.Commands.add('editorDeleteLine', (line, repeatCount) => {
);
});

Cypress.Commands.add('editorClickUndoXTimes', (times) => {
times = times ?? 1;
Cypress._.times(times, () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we are using lodash anywhere else (we probably are), though it would be good to try to remove it if possible. This would be a good alternative for this method in the future: https://youmightnotneed.com/lodash/#times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, will fix it in the last refactor PR

@kahboom kahboom merged commit 35c2ded into kaoto-archive:main Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants