Skip to content

Update Functionality Test 4 for Appium 2#6291

Merged
geriux merged 4 commits into
version-toolkit/gutenberg/rnmobile/appium-2from
test/functionality-test-4-migration
Oct 19, 2023
Merged

Update Functionality Test 4 for Appium 2#6291
geriux merged 4 commits into
version-toolkit/gutenberg/rnmobile/appium-2from
test/functionality-test-4-migration

Conversation

@geriux

@geriux geriux commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

Related PRs

What?

This PR updates the Functionality Test 4 tests to WebdriverIO and Appium 2.

Why?

To continue with the migration effort to support this new version and new driver.

How?

  • Replace the usage of sleep in favor of pause
  • Updates the usage of one test to pass the TextInput element to takeScreenshotByElement
  • Snapshots were updated

Testing Instructions

Local tests should pass by running the following command for both platforms:

Android

 TEST_RN_PLATFORM=android npm run device-tests:local gutenberg-editor-functionality-test-4-visual.test

iOS

 TEST_RN_PLATFORM=ios npm run device-tests:local gutenberg-editor-functionality-test-4-visual.test

I've also confirmed it runs on SauceLabs by triggering the test from a local command against the Appium 2 build.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@geriux geriux added the Testing Anything related to automated tests label Oct 17, 2023
@geriux geriux marked this pull request as ready for review October 17, 2023 16:19
@geriux geriux requested a review from dcalhoun October 17, 2023 16:20

@dcalhoun dcalhoun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified the test plan succeeded. 🚀

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It appears the button elements shifted slightly here and in the dark mode snapshot. Do you know why that is the case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It looks like before the migration we were adding a space at the beginning of the text, if you see the previous screenshot, the text is not aligned. We've changed quite a few utils so it seems we had a bug somewhere 🤔

@geriux geriux force-pushed the test/functionality-test-4-migration branch from 739dff5 to 64880c3 Compare October 19, 2023 10:09
@geriux

geriux commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

I'm going to merge this PR since the test failure is not related to this change. I'll create a different PR to fix that flaky test.

@geriux geriux merged commit c63ebc2 into version-toolkit/gutenberg/rnmobile/appium-2 Oct 19, 2023
@geriux geriux deleted the test/functionality-test-4-migration branch October 19, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testing Anything related to automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants