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

[RNMobile][Monorepo] Update from master and fix web e2e tests #21966

Conversation

cameronvoell
Copy link
Member

@cameronvoell cameronvoell commented Apr 29, 2020

Part of the Monorepo effort

Description

This PR aims to get web e2e tests working on the monore repo feature branch (feat/import-gutenberg-mobile-no-squash). It does so by updating from gutenberg master and gutenberg-mobile develop.

How has this been tested?

This enables back travis CI on the feat/import-gutenberg-mobile-no-squash branch.

  • Check that all tests are passing in this PR
  • Check that the gutenberg demo is running fine locally and that there is no regression: npm run native ios/android and npm run native start

Types of changes

  • Update from master

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@github-actions
Copy link

github-actions bot commented Apr 29, 2020

Size Change: -14.3 kB (1%)

Total Size: 828 kB

Filename Size Change
build/annotations/index.js 3.62 kB +2 B (0%)
build/autop/index.js 2.82 kB -1 B
build/block-directory/index.js 6.59 kB +357 B (5%) 🔍
build/block-directory/style-rtl.css 764 B +4 B (0%)
build/block-directory/style.css 764 B +3 B (0%)
build/block-editor/index.js 104 kB -1.52 kB (1%)
build/block-editor/style-rtl.css 10.6 kB +419 B (3%)
build/block-editor/style.css 10.6 kB +420 B (3%)
build/block-library/editor-rtl.css 7.15 kB -15 B (0%)
build/block-library/editor.css 7.15 kB -13 B (0%)
build/block-library/index.js 115 kB +3.06 kB (2%)
build/block-library/style-rtl.css 7.38 kB +196 B (2%)
build/block-library/style.css 7.38 kB +193 B (2%)
build/block-serialization-default-parser/index.js 1.88 kB +1 B
build/blocks/index.js 48.1 kB -9.58 kB (19%) 👏
build/components/index.js 181 kB -17.5 kB (9%)
build/components/style-rtl.css 17 kB +34 B (0%)
build/components/style.css 16.9 kB +33 B (0%)
build/core-data/index.js 11.4 kB +2 B (0%)
build/data-controls/index.js 1.29 kB +42 B (3%)
build/data/index.js 8.42 kB -5 B (0%)
build/date/index.js 5.47 kB +2 B (0%)
build/dom-ready/index.js 568 B -1 B
build/edit-navigation/index.js 5.59 kB +2.05 kB (36%) 🚨
build/edit-navigation/style-rtl.css 618 B +133 B (21%) 🚨
build/edit-navigation/style.css 617 B +132 B (21%) 🚨
build/edit-post/index.js 28 kB +65 B (0%)
build/edit-post/style-rtl.css 12.2 kB -109 B (0%)
build/edit-post/style.css 12.2 kB -109 B (0%)
build/edit-site/index.js 12.1 kB +1.37 kB (11%) ⚠️
build/edit-site/style-rtl.css 5.22 kB +125 B (2%)
build/edit-site/style.css 5.22 kB +127 B (2%)
build/edit-widgets/index.js 8.37 kB +874 B (10%) ⚠️
build/edit-widgets/style-rtl.css 4.69 kB +29 B (0%)
build/edit-widgets/style.css 4.69 kB +29 B (0%)
build/editor/editor-styles-rtl.css 425 B -3 B (0%)
build/editor/editor-styles.css 428 B -3 B (0%)
build/editor/index.js 44.3 kB +947 B (2%)
build/editor/style-rtl.css 5.07 kB +1.8 kB (35%) 🚨
build/editor/style.css 5.08 kB +1.81 kB (35%) 🚨
build/element/index.js 4.65 kB -2 B (0%)
build/escape-html/index.js 734 B +1 B
build/format-library/index.js 7.63 kB +314 B (4%)
build/hooks/index.js 2.13 kB +1 B
build/i18n/index.js 3.56 kB +1 B
build/is-shallow-equal/index.js 710 B -1 B
build/keyboard-shortcuts/index.js 2.51 kB -2 B (0%)
build/list-reusable-blocks/index.js 3.13 kB +5 B (0%)
build/media-utils/index.js 5.29 kB +7 B (0%)
build/notices/index.js 1.79 kB +1 B
build/nux/index.js 3.4 kB -2 B (0%)
build/plugins/index.js 2.56 kB -115 B (4%)
build/primitives/index.js 1.5 kB +7 B (0%)
build/redux-routine/index.js 2.85 kB +7 B (0%)
build/rich-text/index.js 14.8 kB +8 B (0%)
build/server-side-render/index.js 2.68 kB +3 B (0%)
build/token-list/index.js 1.28 kB -1 B
build/url/index.js 4.02 kB +1 B
build/warning/index.js 1.14 kB -1 B
build/wordcount/index.js 1.17 kB +1 B
ℹ️ View Unchanged
Filename Size Change
build/a11y/index.js 1.02 kB 0 B
build/api-fetch/index.js 4.08 kB 0 B
build/blob/index.js 620 B 0 B
build/block-library/theme-rtl.css 683 B 0 B
build/block-library/theme.css 685 B 0 B
build/block-serialization-spec-parser/index.js 3.1 kB 0 B
build/compose/index.js 6.66 kB 0 B
build/deprecated/index.js 772 B 0 B
build/dom/index.js 3.1 kB 0 B
build/format-library/style-rtl.css 502 B 0 B
build/format-library/style.css 502 B 0 B
build/html-entities/index.js 622 B 0 B
build/keycodes/index.js 1.94 kB 0 B
build/list-reusable-blocks/style-rtl.css 226 B 0 B
build/list-reusable-blocks/style.css 226 B 0 B
build/nux/style-rtl.css 616 B 0 B
build/nux/style.css 613 B 0 B
build/priority-queue/index.js 789 B 0 B
build/shortcode/index.js 1.7 kB 0 B
build/viewport/index.js 1.84 kB 0 B

compressed-size-action

mchowning and others added 14 commits April 29, 2020 15:55
[UI tests] Cover additional blocks with UI tests
…uggestions (#21873)

* Configure the navigation editor with correct __experimentalFetchLinkSuggestions

* Move __experimentalFetchLinkSuggestions from block-editor to editor

* Update package-lock.json

* Update package-lock.json

* Copy fetchLinkSuggestions over to edit-navigation

* Update formatting in package.json

* Update package-lock.json

* Update package-lock.json
* Add a method for publishing patches to the lerna scripts.

* Spelling is hard.

* Let's swap to  to help with the major.minor.patch semver structure.

* Add a bit to the docs.
* Fix props in example code for Edit Post module

* Fix props in JSDoc for Edit Post module
Adds missing entry that was not included in #21928. Props to @aduth for noticing.
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
 - @wordpress/[email protected]
@cameronvoell cameronvoell added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Apr 30, 2020
@cameronvoell cameronvoell requested review from ceyhun and Tug April 30, 2020 07:17
@cameronvoell cameronvoell marked this pull request as ready for review April 30, 2020 07:18
@Tug
Copy link
Contributor

Tug commented Apr 30, 2020

Works great locally!

I think it would be good to integrate them with Gutenberg CI tests and make sure they run correctly on saucelabs now

* revert bad merge

* removed author storage

we also set post author on change from the block itself.

* linting

* use sizes to label avatar size

this aloows us to use the sizes as the API serves them

* adds some review suggestions

props @ockham

* removes null coalescing operator
* Implement native Cover overlay color settings component

* Add overlay color settings to native Cover block

* Remove unnecessary attributes spread from setOverlayAttribute

* Trigger travis
@mkevins
Copy link
Contributor

mkevins commented May 13, 2020

Hi @Tug 👋 😃 Just a heads up, since I noticed a few commits that change the screen coordinates for the Android emulator: the copy-paste UI tests currently rely on tapping a screen offset from the carret position since the UI to copy and paste is part of the OS and not the app, and thus cannot be clicked via the usual XPath mechanism. In case you see failures for these E2E tests, it may be possible that these offsets need to be tweaked for different screen sizes, or a change in the API level. If these tests are not failing (or are failing for other reasons), no need to alter anything, I just wanted to point out there is the potential for fragility there.

draganescu and others added 2 commits May 13, 2020 15:02
* menu locations page setup

* adds saving location, broken for now

* adds UI panels

* fixes incorrect labeling

* await for each location assignment

* refactors according to review

main change is elliminating some useless falsey checks

* sends one request per menuId

* properly awaits for saveMenu

* updates the satate of the locations form with edits

* adds code tweaks according to code review

* reafactored for better code readability

* adds a custom hook for location manipulation

* refactoring according to code review

* encapsulates more of the locations logic in the locations hook

* more variable name refactoring

* refactoring based on review

* refactored to remove state mutation and save empty locations properly
* Submenu nesting and saving new nested items.

* Address review feedback

* Save parent items before nested items

* Save sub-items of new items

* Remove logging in error.

* Array manipulation improvement

* Address review feedback

* Fix PHP lint errors
@Tug
Copy link
Contributor

Tug commented May 13, 2020

Hi @mkevins! Indeed I tried to reproduce the saucelab env by tweaking the sceen size but I was careful not to chang the coordinates offsets dw there ;)
It seems it's not enough though, some tests that are succeeding locally are failing in travis. In the end I don't think this testing env is super stable and we might go with github actions as we already have them green in this PR by @ceyhun :)

@Tug Tug changed the title [RNMobile][Monorepo] E2E Tests [RNMobile][Monorepo] Update from master and fix web e2e tests May 13, 2020
@dratwas dratwas mentioned this pull request May 13, 2020
21 tasks
gziolo and others added 4 commits May 13, 2020 09:34
…#22235)

* Create Block: Use glob to find all template files

* Create block: Refactor template handling

* Move output files templates to getBlockTemplate

* Add CHANGELOG entry

* Apply suggestions from code review

Co-authored-by: Andrew Duthie <[email protected]>

Co-authored-by: Andrew Duthie <[email protected]>
@Tug Tug marked this pull request as draft May 13, 2020 09:32
@Tug Tug changed the base branch from feat/import-gutenberg-mobile-no-squash to master May 13, 2020 09:33
@Tug Tug changed the base branch from master to feat/import-gutenberg-mobile-no-squash May 13, 2020 09:39
@Tug Tug changed the base branch from feat/import-gutenberg-mobile-no-squash to master May 13, 2020 12:37
@Tug Tug changed the base branch from master to feat/import-gutenberg-mobile-no-squash May 13, 2020 12:56
@Tug Tug marked this pull request as ready for review May 13, 2020 13:53
Copy link
Contributor

@Tug Tug left a comment

Choose a reason for hiding this comment

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

This is in a good state now, @ceyhun could you have a look at it?

@Tug Tug force-pushed the feat/import-gutenberg-mobile-no-squash-E2E-TESTS branch from 9cc1523 to 2bc61da Compare May 14, 2020 07:37
Copy link
Member

@ceyhun ceyhun left a comment

Choose a reason for hiding this comment

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

Ran native apps locally and both iOS and Android work great 👍

@hypest
Copy link
Contributor

hypest commented May 14, 2020

Will merge this now with "Merge commit" GitHub option turned on, to preserve the commit history. Will remove the option right afterwards.

@hypest hypest merged commit 005afea into feat/import-gutenberg-mobile-no-squash May 14, 2020
@hypest hypest deleted the feat/import-gutenberg-mobile-no-squash-E2E-TESTS branch May 14, 2020 11:48
@Tug Tug mentioned this pull request Jun 5, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.