Skip to content

Commit

Permalink
Use role selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 31, 2022
1 parent 34c55ad commit 5d9dc81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/writing-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,14 +980,14 @@ class WritingFlowUtils {
await this.page.keyboard.press( 'Enter' );
await this.page.keyboard.type( '/columns' );
await this.page.keyboard.press( 'Enter' );
await this.page.click( '[aria-label="Two columns; equal split"]' );
await this.page.click( 'role=button[name="Two columns; equal split"]' );
await this.page.click( 'role=button[name="Add block"i]' );
await this.page.click(
'role=listbox[name="Blocks"i] >> role=option[name="Paragraph"i]'
);
await this.page.keyboard.type( '1st col' ); // If this text is too long, it may wrap to a new line and cause test failure. That's why we're using "1st" instead of "First" here.

await this.page.focus( '[aria-label="Block: Column (2 of 2)"]' );
await this.page.focus( 'role=document[name="Block: Column (2 of 2)"]' );
await this.page.click( 'role=button[name="Add block"i]' );
await this.page.click(
'role=listbox[name="Blocks"i] >> role=option[name="Paragraph"i]'
Expand Down

0 comments on commit 5d9dc81

Please sign in to comment.