Skip to content

Commit

Permalink
Make tests pass in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 11, 2021
1 parent 071b7ef commit b17a39e
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions packages/e2e-tests/specs/experiments/navigation-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,18 +347,26 @@ describe( 'Navigation editor', () => {
);
await startEmptyButton.click();

// NOTE - the following code is commented out.
// In CI the editor doesn't seem to support variations.
// The following code can be re-introduced once that's resolved.
// Add an inner link block.
const appender = await page.waitForSelector(
'button[aria-label="Add Link"]'
);
await appender.click();
// const appender = await page.waitForSelector(
// 'button[aria-label="Add block"]'
// );
// await appender.click();

// Must be an exact match to the word 'Link' as other
// variations also contain the word 'Link'.
const linkInserterItem = await page.waitForXPath(
'//button[@role="option"]//span[.="Link"]'
// const linkInserterItem = await page.waitForXPath(
// '//button[@role="option"]//span[.="Link"]'
// );
// await linkInserterItem.click();

const appender = await page.waitForSelector(
'button[aria-label="Add Link"]'
);
await linkInserterItem.click();
await appender.click();

await page.waitForSelector( 'input[aria-label="URL"]' );

Expand Down

0 comments on commit b17a39e

Please sign in to comment.