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

Bump @cypress/request and cypress + Pattern updates as per supported WP versions + WP bump to 6.2 as min and 6.4 as max #166

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 10, 2023

Bumps @cypress/request to 3.0.1 and updates ancestor dependency cypress. These dependencies need to be updated together.

Updates @cypress/request from 2.88.12 to 3.0.1

Release notes

Sourced from @​cypress/request's releases.

v3.0.1

3.0.1 (2023-09-06)

Bug Fixes

v3.0.0

3.0.0 (2023-08-08)

Features

  • Add allowInsecureRedirect option (c5bcf21)

BREAKING CHANGES

  • The allowInsecureRedirect is false by default, which may cause issues if your usage relies on insecure redirects. For the former behavior, you can opt in to insecure redirects by setting the option to true, but it is not recommended.

Co-authored-by: Szymon Drosdzol [email protected]

Changelog

Sourced from @​cypress/request's changelog.

Change Log

v2.88.0 (2018/08/10)

v2.87.0 (2018/05/21)

v2.86.0 (2018/05/15)

v2.85.0 (2018/03/12)

v2.84.0 (2018/03/12)

v2.83.0 (2017/09/27)

v2.82.0 (2017/09/19)

v2.81.0 (2017/03/09)

v2.80.0 (2017/03/04)

... (truncated)

Commits

Updates cypress from 11.2.0 to 13.3.0

Release notes

Sourced from cypress's releases.

v13.3.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-3-0

v13.2.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-2-0

v13.1.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-1-0

v13.0.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-0-0

v12.17.4

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-4

v12.17.3

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-3

v12.17.2

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-2

v12.17.1

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-1

v12.17.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-0

v12.16.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-16-0

v12.15.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-15-0

v12.14.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-14-0

v12.13.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-13-0

v12.12.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-12-0

v12.11.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-11-0

v12.10.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-10-0

v12.9.0

Changelog: https://docs.cypress.io/guides/references/changelog#12-9-0

... (truncated)

Commits
  • 0871b03 chore: update 13.3.0 release date in changelog (#27918)
  • 1ec045f chore: fix action to properly add PR to the Triage Board for visibility (#27917)
  • a1b4124 chore: release 13.3.0 (#27900)
  • b114dce fix: statusCode allow 999 (#27853)
  • dbfb3e6 chore: Update installation requirements in CONTRIBUTING.md (#27878)
  • b1efbaf chore(deps): update dependency systeminformation to v5.21.7 [security] (#27874)
  • 199f4c3 chore: remove KPI generation workflow (#27887)
  • 273d8ce chore: skip binary jobs if we don't have a circle token (#27876)
  • ce17a44 fix: issue with font flooding (#27860)
  • 154311a chore: gate restricted contexts with approval job for contributor workflow (#...
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [@cypress/request](https://github.com/cypress-io/request) to 3.0.1 and updates ancestor dependency [cypress](https://github.com/cypress-io/cypress). These dependencies need to be updated together.


Updates `@cypress/request` from 2.88.12 to 3.0.1
- [Release notes](https://github.com/cypress-io/request/releases)
- [Changelog](https://github.com/cypress-io/request/blob/master/CHANGELOG.md)
- [Commits](cypress-io/request@v2.88.12...v3.0.1)

Updates `cypress` from 11.2.0 to 13.3.0
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](cypress-io/cypress@v11.2.0...v13.3.0)

---
updated-dependencies:
- dependency-name: "@cypress/request"
  dependency-type: indirect
- dependency-name: cypress
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from faisal-alvi as a code owner October 10, 2023 01:07
@dependabot dependabot bot added the type:dependency An issue with a separate library that this project relies upon. label Oct 10, 2023
@jeffpaul jeffpaul added this to the 1.3.3 milestone Oct 10, 2023
Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@dkotter I have tested this in local and the cypress tests are running and passing without any errors

image

But here in the pipeline it is failing (tried re-running them too but no luck). In such cases, how should we proceed?

@dkotter
Copy link
Collaborator

dkotter commented Oct 10, 2023

@faisal-alvi Tested myself and tests do pass if running on our minimum WordPress version (5.7) but if running on the latest version or on trunk, it then fails with the same error seen here.

I think the solve here is to follow the steps in #164, most importantly updating the @10up/cypress-wp-utils library to the latest version and using the helper methods it provides to interact with the block editor. We could either close this PR out and open a new one to solve things or make changes straight to this PR.

@jeffpaul
Copy link
Member

Fine by me to simplify things and resolve within this PR

@github-actions github-actions bot added the needs:code-review This requires code review. label Oct 11, 2023
@faisal-alvi faisal-alvi modified the milestones: 1.3.3, 1.3.4 Oct 11, 2023
@faisal-alvi faisal-alvi self-assigned this Oct 11, 2023
@faisal-alvi faisal-alvi changed the title Bump @cypress/request and cypress [WIP] Bump @cypress/request and cypress + Pattern updates as per supported WP versions Oct 11, 2023
@faisal-alvi faisal-alvi mentioned this pull request Oct 11, 2023
2 tasks
@jeffpaul
Copy link
Member

@faisal-alvi please keep us posted when this PR is ready for review as once this gets merged in then that will also unblock #165

@github-actions github-actions bot added the needs:refresh This requires a refreshed PR to resolve. label Oct 24, 2023
@github-actions
Copy link
Contributor

@dependabot thanks for the PR! Could you please rebase your PR on top of the latest changes in the base branch?

@jeffpaul
Copy link
Member

Noting that I talked with @faisal-alvi on this and he'll test to see if WP 6.2 resolves the concerns, if so we'll set that as our minimum and test WP 6.4 and make that the max for PMK.

@faisal-alvi faisal-alvi requested a review from jeffpaul as a code owner December 4, 2023 08:51
@faisal-alvi faisal-alvi removed the request for review from jeffpaul December 4, 2023 08:53
@faisal-alvi
Copy link
Member

So the new changes include:

  • Bump min supported WP v6.2
  • Bump tested up to WP v6.4

Note: I had to use force click because even running the closeWelcomeGuide() does not closes the welcome guide box in the pipeline; when tested locally, it was being closed but not in the pipeline. Hence, the given suggestion is implemented.

@faisal-alvi faisal-alvi requested review from a team and jeffpaul and removed request for a team December 4, 2023 10:27
@jeffpaul jeffpaul requested a review from a team December 4, 2023 14:37
@faisal-alvi faisal-alvi changed the title [WIP] Bump @cypress/request and cypress + Pattern updates as per supported WP versions Bump @cypress/request and cypress + Pattern updates as per supported WP versions + WP bumo to 6.2 as min and 6.4 as max Dec 5, 2023
@Sidsector9 Sidsector9 changed the title Bump @cypress/request and cypress + Pattern updates as per supported WP versions + WP bumo to 6.2 as min and 6.4 as max Bump @cypress/request and cypress + Pattern updates as per supported WP versions + WP bump to 6.2 as min and 6.4 as max Dec 5, 2023
Copy link
Collaborator

@dkotter dkotter left a comment

Choose a reason for hiding this comment

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

I'm not sure this is a problem introduced with this PR (seems to be an issue on the develop branch as well) but I'm running into a few issues we should resolve.

The main one is the Tab block does not render in the editor for the Media Kit page but does render on the front end:
Block error

I'm also getting some console errors that may or may not be related:

TypeError: Cannot read properties of null (reading 'getBoundingClientRect') in editor.js

and

The block "tenup/tabs-item" is registered with an invalid category "tenup-blocks".

and

publisher_media_kit_admin-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe

@faisal-alvi
Copy link
Member

@dkotter please check now.

@faisal-alvi faisal-alvi requested a review from dkotter December 6, 2023 17:53
Copy link
Collaborator

@dkotter dkotter left a comment

Choose a reason for hiding this comment

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

The tabs block shows in the editor now but when clicking into a Tab Item, I get the same editor error. Console shows this:

Uncaught TypeError: Cannot read properties of null (reading 'setAttribute')
TypeError: Cannot read properties of null (reading 'classList')


// Register block pattern for cover image.
ob_start();
include_once PUBLISHER_MEDIA_KIT_BLOCK_PATTERS . $cover_patter_file . '.php';
include_once PUBLISHER_MEDIA_KIT_BLOCK_PATTERS . 'cover-esperanza.php';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any concern here for sites that may have been using this cover pattern, since we're deleting it now? Not sure if that will cause issues for them or not

Copy link
Member

Choose a reason for hiding this comment

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

no concerns, the patterns are just HTML markup (i.e. static) it does not matter if we change the markup file or delete it.

@faisal-alvi
Copy link
Member

The tabs block shows in the editor now but when clicking into a Tab Item, I get the same editor error. Console shows this:

I've tried to regenerate but the tab block working as expected for me. I'm using Storefront v4.5.3 and only PMK plugin active in WP v6.4.2. Can you please share the steps to regenerate so it would be easy for me to fix?

git-pmk-166

@dkotter
Copy link
Collaborator

dkotter commented Dec 7, 2023

I've tried to regenerate but the tab block working as expected for me. I'm using Storefront v4.5.3 and only PMK plugin active in WP v6.4.2. Can you please share the steps to regenerate so it would be easy for me to fix?

Tested this again on a new environment and it is working. Debugged a bit on the environment that is having a problem and it seems to be an issue with the Gutenberg plugin. If I deactivate that plugin, things work fine but with it active, the tab items break. My main concern here is typically what is in the Gutenberg plugin ends up making it into WordPress core, so I imagine this will be a wider issue within the next WordPress release or two (so may be worth looking into now).

One other issue I found though is if I deactivate the PMK plugin, delete the Media Kit page and then reactivate PMK, it recreates the Media Kit (which is good). When editing this page though, I get a block error: This block contains unexpected or invalid content.

There's also a console error:

Block validation: Block validation failed for core/group

@faisal-alvi
Copy link
Member

@dkotter Thanks, I was able to generate the core/group validation fail issue by installing and activating the Gutenberg v17.2.0 plugin. The issue was related to missing end tags, the </div> and <!-- /wp:group --> tags. After adding them, the errors were gone from the console.

@faisal-alvi faisal-alvi requested a review from dkotter December 8, 2023 13:54
Copy link
Collaborator

@dkotter dkotter left a comment

Choose a reason for hiding this comment

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

Nice work here @faisal-alvi!

Note I tested the following scenarios:

Test update for existing installs

  • Install and activate the current released version of PMK and have it create the Media Kit page
  • Download the changes in this branch and ensure that page still functions correctly in the editor and looks correct on the front-end

Test new installs

  • Delete the Media Kit page and delete the PMK plugin
  • Download the plugin from this branch and activate it
  • Ensure the Media Kit page is created and functions correctly

@faisal-alvi faisal-alvi merged commit e545dad into develop Dec 11, 2023
12 checks passed
@faisal-alvi faisal-alvi deleted the dependabot/npm_and_yarn/cypress/request-and-cypress-3.0.1 branch December 11, 2023 08:49
@jeffpaul jeffpaul linked an issue Dec 11, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:code-review This requires code review. needs:refresh This requires a refreshed PR to resolve. type:dependency An issue with a separate library that this project relies upon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The plugin hasn't been tested with the latest version of WordPress
3 participants