Skip to content

Conversation

thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Sep 18, 2023

Issue number: internal


What is the current behavior?

Some of the tests for item-sliding were being skipped due to flakiness.

What is the new behavior?

  • Updated the tests to use the stable function, dragElementBy to handle gestures, removing the gesture flakiness.
  • Separated the basic test to lessen the gesture complexity else it becomes flaky since it can't handle opening and closing and opening in the same test.
  • Tests are now checking all modes and all directions.
  • Updated a utils function with a warning regarding an open issue with RTL.

Does this introduce a breaking change?

  • Yes
  • No

Other information

N/A

@github-actions github-actions bot added the package: core @ionic/core package label Sep 18, 2023
@thetaPC thetaPC marked this pull request as ready for review September 18, 2023 21:37
@thetaPC thetaPC requested review from a team and brandyscarney and removed request for a team September 18, 2023 21:37
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

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

The tests seem to work now, great job! I ran them with --repeat-each=15 and verified there were no failing tests. Just a few comments on the file names but other than that this looks good.

Screenshot 2023-09-19 at 4 12 00 PM

await page.goto(`/src/components/item-sliding/test/icons`, config);

const itemIDs = ['iconsOnly', 'iconsStart', 'iconsEnd', 'iconsTop', 'iconsBottom'];
for (const itemID of itemIDs) {
await testSlidingItem(page, itemID, itemID, screenshot);
const itemIDKebab = itemID.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move this down above the screenshot call and add a comment on why it is here?

@thetaPC thetaPC added this pull request to the merge queue Sep 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 20, 2023
@thetaPC thetaPC added this pull request to the merge queue Sep 20, 2023
Merged via the queue into main with commit 5e016a6 Sep 20, 2023
@thetaPC thetaPC deleted the FW-5021 branch September 20, 2023 17:54
liamdebeasi pushed a commit that referenced this pull request Sep 22, 2023
Issue number: internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Some of the tests for `item-sliding` were being skipped due to
flakiness.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Updated the tests to use the stable function, `dragElementBy` to
handle gestures, removing the gesture flakiness.
- Separated the basic test to lessen the gesture complexity else it
becomes flaky since it can't handle opening and closing and opening in
the same test.
- Tests are now checking all modes and all directions.
- Updated a utils function with a warning regarding an open issue with
RTL.


## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

N/A

---------

Co-authored-by: ionitron <[email protected]>
Co-authored-by: Brandy Carney <[email protected]>
liamdebeasi pushed a commit that referenced this pull request Sep 26, 2023
Issue number: internal

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Some of the tests for `item-sliding` were being skipped due to
flakiness.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Updated the tests to use the stable function, `dragElementBy` to
handle gestures, removing the gesture flakiness.
- Separated the basic test to lessen the gesture complexity else it
becomes flaky since it can't handle opening and closing and opening in
the same test.
- Tests are now checking all modes and all directions.
- Updated a utils function with a warning regarding an open issue with
RTL.


## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

N/A

---------

Co-authored-by: ionitron <[email protected]>
Co-authored-by: Brandy Carney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants