Skip to content

Commit

Permalink
make scheduling calendar XPath more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Feb 22, 2022
1 parent aeb05f3 commit a96b2af
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ describe( 'Post visibility', () => {
'div[aria-label="Move forward to switch to the next month."]'
);
await (
await page.$x( '//td[@role="button"]/*[text() = "15"]' )
await page.$x(
'//*[@role="application"][@aria-label="Calendar"]//td[@role="button"]/*[text() = "15"]'
)
)[ 0 ].click();

await page.click( '.edit-post-post-visibility__toggle' );
Expand Down

0 comments on commit a96b2af

Please sign in to comment.