Skip to content

Commit

Permalink
Merge pull request #5746 from wordpress-mobile/version-toolkit/gutenb…
Browse files Browse the repository at this point in the history
…erg/perf/reduce-inner-blocks-tree-depth

perf: Reduce inner blocks tree depth
  • Loading branch information
dcalhoun authored May 12, 2023
2 parents 3cc84ac + b13a458 commit b65e5a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe( 'Gutenberg Editor - Test Suite 1', () => {
.elementByAccessibilityId( 'Column Block. Row 1' )
.click();
const appenderButton = await editorPage.waitForElementToBeDisplayedByXPath(
'(//android.view.ViewGroup[@content-desc="block-list"])[2]/android.widget.Button'
'//android.widget.Button[@content-desc="Column Block. Row 1"]/android.view.ViewGroup[2]/android.view.ViewGroup/android.widget.Button/android.view.ViewGroup/android.view.ViewGroup'
);
await appenderButton.click();
} else {
Expand Down Expand Up @@ -123,7 +123,7 @@ describe( 'Gutenberg Editor - Test Suite 1', () => {
.elementByAccessibilityId( 'Column Block. Row 1' )
.click();
const appenderButton = await editorPage.waitForElementToBeDisplayedByXPath(
'(//android.view.ViewGroup[@content-desc="block-list"])[2]/android.widget.Button'
'//android.widget.Button[@content-desc="Column Block. Row 1"]/android.view.ViewGroup[2]/android.view.ViewGroup/android.widget.Button/android.view.ViewGroup/android.view.ViewGroup'
);
await appenderButton.click();
} else {
Expand Down Expand Up @@ -197,7 +197,7 @@ describe( 'Gutenberg Editor - Test Suite 1', () => {
.elementByAccessibilityId( 'Column Block. Row 1' )
.click();
const appenderButton = await editorPage.waitForElementToBeDisplayedByXPath(
'(//android.view.ViewGroup[@content-desc="block-list"])[2]/android.widget.Button'
'//android.widget.Button[@content-desc="Column Block. Row 1"]/android.view.ViewGroup[2]/android.view.ViewGroup/android.widget.Button/android.view.ViewGroup/android.view.ViewGroup'
);
await appenderButton.click();
} else {
Expand Down Expand Up @@ -231,6 +231,9 @@ describe( 'Gutenberg Editor - Test Suite 1', () => {
.click()
.click();
await editorPage.waitForKeyboardToBeHidden();
// Android fails to display the keyboard at times, which can cause the
// above `waitForKeyboardToBeHidden` to finish prematurely.
await editorPage.driver.sleep( 1000 );

// Visual test check for nested content
screenshot = await takeScreenshot();
Expand Down

0 comments on commit b65e5a9

Please sign in to comment.