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

Make sure that the Welcome Guide does not show in the Cypress tests #2441

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

olafleur-godaddy
Copy link
Member

Description

A few tweaks (with a lot of trial and error ;) ) to make the Cypress tests pass with WP 6.1 by fixing the last problem we have for the moment : the welcome guide showing up unexpected and making our tests fail :)

Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

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

Do we want to keep the logging in place here beyond local testing purposes?

@godaddy-wordpress-bot
Copy link
Contributor

Code Coverage: 96.53% 💚

🗂 Folder Coverage
src/blocks/accordion/                          100.00% ✅
src/blocks/accordion/accordion-item/           100.00% ✅
src/blocks/alert/                              100.00% ✅
src/blocks/author/                             100.00% ✅
src/blocks/buttons/                            100.00% ✅
src/blocks/click-to-tweet/                     100.00% ✅
src/blocks/counter/                            100.00% ✅
src/blocks/dynamic-separator/                  100.00% ✅
src/blocks/events/                              96.43% 💚
src/blocks/events/event-item/                  100.00% ✅
src/blocks/faq/                                100.00% ✅
src/blocks/faq/faq-item/                       100.00% ✅
src/blocks/features/                           100.00% ✅
src/blocks/features/feature/                   100.00% ✅
src/blocks/food-and-drinks/                    100.00% ✅
src/blocks/food-and-drinks/food-item/          100.00% ✅
src/blocks/form/fields/checkbox/               100.00% ✅
src/blocks/form/fields/date/                   100.00% ✅
src/blocks/form/fields/hidden/                 100.00% ✅
src/blocks/form/fields/name/                   100.00% ✅
src/blocks/form/fields/phone/                  100.00% ✅
src/blocks/form/fields/radio/                  100.00% ✅
src/blocks/form/fields/select/                 100.00% ✅
src/blocks/form/fields/text/                   100.00% ✅
src/blocks/form/fields/textarea/               100.00% ✅
src/blocks/form/fields/website/                100.00% ✅
src/blocks/gallery-carousel/                    96.43% 💚
src/blocks/gallery-collage/                    100.00% ✅
src/blocks/gallery-masonry/                     80.10% 💚
src/blocks/gallery-offset/                     100.00% ✅
src/blocks/gallery-stacked/                    100.00% ✅
src/blocks/gif/                                100.00% ✅
src/blocks/gist/                               100.00% ✅
src/blocks/hero/                                92.56% 💚
src/blocks/highlight/                          100.00% ✅
src/blocks/logos/                              100.00% ✅
src/blocks/map/                                100.00% ✅
src/blocks/media-card/                          96.43% 💚
src/blocks/opentable/                          100.00% ✅
src/blocks/post-carousel/                      100.00% ✅
src/blocks/posts/                              100.00% ✅
src/blocks/pricing-table/                      100.00% ✅
src/blocks/pricing-table/pricing-table-item/   100.00% ✅
src/blocks/row/                                 94.43% 💚
src/blocks/row/column/                          88.54% 💚
src/blocks/services/                           100.00% ✅
src/blocks/services/service/                   100.00% ✅
src/blocks/shape-divider/                      100.00% ✅
src/blocks/share/                               81.25% 💚
src/blocks/social-profiles/                     79.64% 💛
src/blocks/testimonials/                        87.50% 💚
src/blocks/testimonials/testimonial/           100.00% ✅

From Circle CI build 61755

@cypress
Copy link

cypress bot commented Nov 1, 2022



Test summary

197 0 1 0


Run details

Project CoBlocks
Status Passed
Commit d76bf74
Started Nov 1, 2022 3:34 PM
Ended Nov 1, 2022 3:39 PM
Duration 05:04 💡
OS Linux Ubuntu - 20.04
Browser Firefox 106

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard


cy.get( '.block-editor-page' ).should( 'exist' );
} )
.get( '.wp-block-post-title' ).should( 'exist' );
Copy link
Member

Choose a reason for hiding this comment

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

Smart. I'm assuming this will make Cypress wait until the editor is actually loaded rather than the DOM surrounding the React app.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it makes it wait a little longer :)

Copy link
Member

@jrtashjian jrtashjian left a comment

Choose a reason for hiding this comment

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

This looks good to me! You can merge it when you're ready.

@olafleur-godaddy olafleur-godaddy merged commit 0b9ce23 into master Nov 1, 2022
@olafleur-godaddy olafleur-godaddy deleted the WPEX-2425-fix-welcome-guide branch November 1, 2022 16:11
@olafleur-godaddy olafleur-godaddy added this to the Next Release milestone Nov 3, 2022
EvanHerman added a commit that referenced this pull request Nov 7, 2022
* fix #2431: re-register key bindings on subsequent lightbox opens (#2432)

* fix #2431: lightbox key bindings

* tweak logic and spacing

Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>

* [skip ci] Update coblocks.pot/coblocks.json files

* Updates

* update .sql file

* Updates

* Update aria labels

* Updates to slider

* Update unit tests

* Add ignore element

* Add wait beore running pa11y

* Update .sql file

* updates

* Remove alert

* Try pa11y-ci

* Test new config

* update

* Wait for element

* Update actions

* Test screenshot before pa11y

* Fix path

* Fix artifact path

* Increase timeout

* Move images to uploads directory

* Tweak media path

* Rename coblocks-testing

* Try pa11y

* Update pa11y.js

* Fix test url

* Remove pa11y-ci

* Update pa11y sql test file

* Update site title and tagline of a11y test site

* Install go theme before performance tests run

* Install go theme before performance tests run

* remove go theme before performance tests run

* Update form cypress test

* Update form cypress test

* Update service block test

* Remove checkbox from color test

* Fix form legend style attributes

* Add test for form legend color

* Update eslint errors/warnings

* Update color label test

* Update collage and carousel snapshots

* Update form tests

* Update

* Update

* Fix form tests

* Test

* Update color

* Update pricing table test

* Update service cypress test

* Revert

* Update helpers add custom class, update service cypress test.

* Uncomment test

* Fix js errors

* Fix broken tests with WP 6.1 RC1 (#2435)

* Fix broken tests in Accordion block in WP 6.1 RC1

* Other fixes

* Fix condition

* Permalink is not at the same place in WP 6.1

* Type caption in Gallery Collage

* Fix Pricing Table Item test

* Fix padding-controls test

* Fix Food & Drink block tests

* Do not execute Form tests that need a CI setup when in local

* Fix Form block test

* Fix Food Item block tests

* Fix Icon block test

* Fix Gallery Masonry block test

* Code review fixes

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix collage replace image caption save bug

* Add WCAG2A badge to readme.md

* Fix conditional to determine if we are using a WP version >= WP 6.1 in the tests (#2437)

Fix conditional

* [skip ci] Update coblocks.pot/coblocks.json files

* Drop support for PHP 5.6 (#2408)

* Drop PHP 5.6

* Update wp-phpunit

* Drop --1

* composer update

* Revert skip coverage for PHP 8.1

* Fix spacing

* Rollback --1

* Put back newPhpUnit flag

* Augment PHP version to 7.4+ in phpcs.xml

* [skip ci] Update coblocks.pot/coblocks.json files

* Disable color controls for WordPress 6.1+ (#2440)

* disable color settings controls in 6.1+ WP

* Skip Cypress tests for Color Controls for WP 6.1+

Co-authored-by: Anthony M Ledesma <aledesma@LM-H7V42D79VD.lan>
Co-authored-by: Olivier Lafleur <olafleur@godaddy.com>

* [skip ci] Update coblocks.pot/coblocks.json files

* Bump 'Tested up to' to WP 6.1 (#2439)

* [skip ci] Update coblocks.pot/coblocks.json files

* Make sure that the Welcome Guide does not show in the Cypress tests (#2441)

* It should work

* Code Review changes

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix aria label for email field. Remove migrate heading level from food and drink item.

* Remove ID attributes from next and prev buttons

* Update GoDaddy Styles to 1.0.5 (#2438)

* [skip ci] Update coblocks.pot/coblocks.json files

* Changelog for 2.25.0

* 2.25.0

* [skip ci] Update coblocks.pot/coblocks.json files

* Add @gracemarsh to the contributors

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix extra }

* Update email field aria label capitalization

Co-authored-by: Grace <62684655+gracemarsh@users.noreply.github.com>
Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>
Co-authored-by: GoDaddy Translator Bot <plugins@godaddy.com>
Co-authored-by: Olivier Lafleur <85255688+olafleur-godaddy@users.noreply.github.com>
Co-authored-by: Anthony Ledesma <30462574+AnthonyLedesma@users.noreply.github.com>
Co-authored-by: Anthony M Ledesma <aledesma@LM-H7V42D79VD.lan>
Co-authored-by: Olivier Lafleur <olafleur@godaddy.com>
EvanHerman added a commit that referenced this pull request Nov 10, 2022
* Enable a11y testing on CircleCI.

* pa11y Updates (#2434)

* fix #2431: re-register key bindings on subsequent lightbox opens (#2432)

* fix #2431: lightbox key bindings

* tweak logic and spacing

Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>

* [skip ci] Update coblocks.pot/coblocks.json files

* Updates

* update .sql file

* Updates

* Update aria labels

* Updates to slider

* Update unit tests

* Add ignore element

* Add wait beore running pa11y

* Update .sql file

* updates

* Remove alert

* Try pa11y-ci

* Test new config

* update

* Wait for element

* Update actions

* Test screenshot before pa11y

* Fix path

* Fix artifact path

* Increase timeout

* Move images to uploads directory

* Tweak media path

* Rename coblocks-testing

* Try pa11y

* Update pa11y.js

* Fix test url

* Remove pa11y-ci

* Update pa11y sql test file

* Update site title and tagline of a11y test site

* Install go theme before performance tests run

* Install go theme before performance tests run

* remove go theme before performance tests run

* Update form cypress test

* Update form cypress test

* Update service block test

* Remove checkbox from color test

* Fix form legend style attributes

* Add test for form legend color

* Update eslint errors/warnings

* Update color label test

* Update collage and carousel snapshots

* Update form tests

* Update

* Update

* Fix form tests

* Test

* Update color

* Update pricing table test

* Update service cypress test

* Revert

* Update helpers add custom class, update service cypress test.

* Uncomment test

* Fix js errors

* Fix broken tests with WP 6.1 RC1 (#2435)

* Fix broken tests in Accordion block in WP 6.1 RC1

* Other fixes

* Fix condition

* Permalink is not at the same place in WP 6.1

* Type caption in Gallery Collage

* Fix Pricing Table Item test

* Fix padding-controls test

* Fix Food & Drink block tests

* Do not execute Form tests that need a CI setup when in local

* Fix Form block test

* Fix Food Item block tests

* Fix Icon block test

* Fix Gallery Masonry block test

* Code review fixes

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix collage replace image caption save bug

* Add WCAG2A badge to readme.md

* Fix conditional to determine if we are using a WP version >= WP 6.1 in the tests (#2437)

Fix conditional

* [skip ci] Update coblocks.pot/coblocks.json files

* Drop support for PHP 5.6 (#2408)

* Drop PHP 5.6

* Update wp-phpunit

* Drop --1

* composer update

* Revert skip coverage for PHP 8.1

* Fix spacing

* Rollback --1

* Put back newPhpUnit flag

* Augment PHP version to 7.4+ in phpcs.xml

* [skip ci] Update coblocks.pot/coblocks.json files

* Disable color controls for WordPress 6.1+ (#2440)

* disable color settings controls in 6.1+ WP

* Skip Cypress tests for Color Controls for WP 6.1+

Co-authored-by: Anthony M Ledesma <aledesma@LM-H7V42D79VD.lan>
Co-authored-by: Olivier Lafleur <olafleur@godaddy.com>

* [skip ci] Update coblocks.pot/coblocks.json files

* Bump 'Tested up to' to WP 6.1 (#2439)

* [skip ci] Update coblocks.pot/coblocks.json files

* Make sure that the Welcome Guide does not show in the Cypress tests (#2441)

* It should work

* Code Review changes

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix aria label for email field. Remove migrate heading level from food and drink item.

* Remove ID attributes from next and prev buttons

* Update GoDaddy Styles to 1.0.5 (#2438)

* [skip ci] Update coblocks.pot/coblocks.json files

* Changelog for 2.25.0

* 2.25.0

* [skip ci] Update coblocks.pot/coblocks.json files

* Add @gracemarsh to the contributors

* [skip ci] Update coblocks.pot/coblocks.json files

* Fix extra }

* Update email field aria label capitalization

Co-authored-by: Grace <62684655+gracemarsh@users.noreply.github.com>
Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>
Co-authored-by: GoDaddy Translator Bot <plugins@godaddy.com>
Co-authored-by: Olivier Lafleur <85255688+olafleur-godaddy@users.noreply.github.com>
Co-authored-by: Anthony Ledesma <30462574+AnthonyLedesma@users.noreply.github.com>
Co-authored-by: Anthony M Ledesma <aledesma@LM-H7V42D79VD.lan>
Co-authored-by: Olivier Lafleur <olafleur@godaddy.com>

* Reinstall composer dependencies

* Remove composer install step from a11y

Co-authored-by: Justin Kopepasah <justin@kopepasah.com>
Co-authored-by: Evan Herman <evan.m.herman@gmail.com>
Co-authored-by: Grace <62684655+gracemarsh@users.noreply.github.com>
Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>
Co-authored-by: GoDaddy Translator Bot <plugins@godaddy.com>
Co-authored-by: Olivier Lafleur <85255688+olafleur-godaddy@users.noreply.github.com>
Co-authored-by: Anthony Ledesma <30462574+AnthonyLedesma@users.noreply.github.com>
Co-authored-by: Anthony M Ledesma <aledesma@LM-H7V42D79VD.lan>
Co-authored-by: Olivier Lafleur <olafleur@godaddy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants