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

pwa-2166: Slider movement causing Cypress test failures #3436

Merged
merged 25 commits into from
Sep 29, 2021
Merged

Conversation

michaelyu0123
Copy link
Contributor

Description

Resolved issue with slider not displaying properly when set to infinite and have more than 8 items which made it look like it was autoplaying on cypress tests.
Also resolved some prop shape changes mapping.

Related Issue

Closes PWA-2166

Acceptance

Verification Stakeholders

Specification

Verification Steps

Test scenario(s) for direct fix/feature

Test scenario(s) for any existing impacted features/areas

Test scenario(s) for any Magento Backend Supported Configurations

Is Browser/Device testing needed?

Any ad-hoc/edge case scenarios that need to be considered?

Screenshots / Screen Captures (if appropriate)

Breaking Changes (if any)

Checklist

  • I have added tests to cover my changes, if necessary.
  • I have added translations for new strings, if necessary.
  • I have updated the documentation accordingly, if necessary.

revanth0212 and others added 5 commits September 16, 2021 23:51
- Fixed invalid loading on infinite carousel with more than 8 items.
- Fixed invalid shapes for item and icon components
- Modified settings to first check if settings is passed in as a prop for slickslider component
@michaelyu0123 michaelyu0123 added the version: Patch This changeset includes backwards compatible bug fixes. label Sep 22, 2021
@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Sep 22, 2021

Messages
📖

Associated JIRA tickets: PWA-2166.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by 🚫 dangerJS against e8c7a83

- Added variable height and width to slick slider in slider content type
@revanth0212 revanth0212 changed the base branch from revanth/cypress_docker_local to develop September 23, 2021 16:16
# run cypress tests and remove the container once done
docker run --rm -v $PWD:/venia-integration-tests -w /venia-integration-tests --entrypoint=cypress cypress/included:8.3.1 run --browser chrome --config baseUrl=$PR_INSTANCE_URL,screenshotOnRunFailure=false --config-file cypress.config.json --env updateSnapshots=$UPDATE_SCREENSHOTS --headless
# see if its a local instance or a pr instance
PORT="$(echo $1 | sed -e 's,^.*:,:,g' -e 's,.*:\([0-9]*\).*,\1,g' -e 's,[^0-9],,g')"
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is from #3422 and it will be gone when it gets merged into develop. @michaelyu0123 had to base his branch off of #3422 to have the ability to run tests off of a local instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well if you push this change to revanth/cypress_docker_local branch I can sync it.

@revanth0212
Copy link
Contributor

Thanks for the contribution bud. The code looks good but I see a lot of snapshot updates that are needed (rightfully because the slider component has changed)

Can you please update the snapshots using the following command: yarn test:headless https://pr-3436.pwa-venia.com/?

image

- Reverted changes to slider content type
@michaelyu0123
Copy link
Contributor Author

@revanth0212 please update the cloud instance since I just pushed up a change.

@revanth0212
Copy link
Contributor

@revanth0212 please update the cloud instance since I just pushed up a change.

It should have auto-updated @michaelyu0123. Are you seeing any discrepancies on the instance?

@revanth0212
Copy link
Contributor

Here are the changes after your new commit, less number of changes but still snapshots to be updated. Please verify and update so we can merge the PR.

image

hwyu@adobe.com added 4 commits September 23, 2021 16:22
- Updated carousel config to accomodate for centermode
- Added temporary stop gap to stabilize flaky pagebuilder tests that loads in 3rd party contents
- Cypress test stabilization
- Stabilized block, product, row, slider, and smoke test
- Updated snapshots
@revanth0212
Copy link
Contributor

revanth0212 commented Sep 29, 2021

Functionality ✅ (Functional code un-touched)
Cypress ✅
MFTF ✅ (Thank you @eug123)

.should('not.be.visible');

// Hide maps
cy.get('*[class^="map-root-"]')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we hiding maps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:pagebuilder pkg:peregrine pkg:venia-ui Progress: done version: Patch This changeset includes backwards compatible bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants