Skip to content

Tests are broken due to ID changes #525

@BenHenning

Description

@BenHenning

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

Most tests are failing on tip-of-tree:

Starting webdriverio...
  Keyboard navigation on Blocks
    ✔ Default workspace
    1) Selected block
    2) Down from statement block selects next block across stacks
    3) Up from statement block selects previous block
    4) Down from parent block selects first child block
    5) Up from child block selects parent block
    ✔ Right from block selects first field (210ms)
    6) Right from block selects first inline input
    7) Up from inline input selects statement block
    8) Left from first inline input selects block
    9) Right from first inline input selects second inline input
    10) Left from second inline input selects first inline input
    11) Right from last inline input selects next block
    12) Down from inline input selects next block
    13) Down from inline input selects block's child block
    14) Right from text block selects shadow block then field

  Keyboard navigation on Fields
    15) Up from first field selects block
    16) Left from first field selects block
    ✔ Right from first field selects second field (212ms)
    ✔ Left from second field selects first field (226ms)
    17) Right from second field selects next block
    18) Down from field selects next block
    19) Down from field selects block's child block

  Clipboard test
    ✔ Copy and paste while block selected (255ms)
    ✔ Cut and paste while block selected (780ms)
    ✔ Copy and paste whilst dragging block (443ms)
    ✔ Cut whilst dragging block (427ms)

  Insert test
    ✔ Insert C-shaped block with statement block selected (408ms)

Reproduction steps

  1. Check out 8a9e9d9.
  2. Ensure that it's updated to use v12 beta.7 and has been correctly npm install'd and npm ci'd.
  3. Run npm run test.
  4. Observe the failures.

Stack trace

There are a bunch (one for each failing test), and here's one example:


  19) Keyboard navigation on Fields
       Down from field selects block's child block:

      AssertionError: expected 'blockly-1p' to equal 'draw_emoji_1'
      + expected - actual

      -blockly-1p
      +draw_emoji_1

      at Context.<anonymous> (file:///usr/local/google/home/bhenning/opensource/blockly-keyboard-experimentation/test/webdriverio/test/dist/basic_test.js:316:18)
      at Generator.next (<anonymous>)
      at fulfilled (file:///usr/local/google/home/bhenning/opensource/blockly-keyboard-experimentation/test/webdriverio/test/dist/basic_test.js:9:58)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Screenshots

None.

Browsers

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions