Skip to content

[Bug]: Electron: Native Drag and Drop test is not passing #32765

Open
@andirsun

Description

@andirsun

Version

1.28.1

Steps to reproduce

Case when Fails

  • While running the test put your cursor outside the app window, once the drag event start and you see the Preview icon, without moving the cursor, the test will fail with timeout.
Screen.Recording.2024-09-23.at.16.52.30.mov

Case when it pass

  • While running the test put the cursor inside the app window and leave it
Screen.Recording.2024-09-23.at.16.56.30.mov

Expected behavior

It Should pass in both scenarios without having to move the cursor

Actual behavior

The test fails

Additional context

I think at some point when the cursor outside the app window is not reading the playwright commands to drop the dragged item.

Without this there is not way to test drag and drop electron behavior on CI environments

Environment

System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 73.20 MB / 16.00 GB
  Binaries:
    Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v18.20.3/bin/npm
    bun: 1.1.22 - ~/.bun/bin/bun
  IDEs:
    VSCode: 1.93.1 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.28.1 => 1.28.1
    playwright: ^1.28.1 => 1.28.1
    playwright-core: ^1.28.1 => 1.28.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions