8000 Draft: Add platform mocking e2e (#1312) by ChabanovX · Pull Request #1313 · team113/messenger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Draft: Add platform mocking e2e (#1312) #1313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

ChabanovX
Copy link
Contributor
@ChabanovX ChabanovX commented Jul 1, 2025

Resolves #1312

Synopsis

We lack platform mocking functionality during e2e tests.

Solution

Add this functionality perhaps by introducing a new hook or changing e2e/configuration.dart file.

Checklist

  • Created PR:
    • In draft mode
    • Name contains issue reference
    • Has type and k:: labels applied
  • Before review:
    • Documentation is updated (if required)
    • Tests are updated (if required)
    • Changes conform code style
    • CHANGELOG entry is added (if required)
    • FCM (final commit message) is posted or updated
    • Draft mode is removed
  • Review is completed and changes are approved
    • FCM (final commit message) is approved
  • Before merge:
    • Milestone is set
    • PR's name and description are correct and up-to-date
    • All temporary labels are removed

@ChabanovX ChabanovX added this to the 0.6.0 milestone Jul 1, 2025
@ChabanovX ChabanovX self-assigned this Jul 1, 2025
@ChabanovX ChabanovX added enhancement Improvement of existing features or bugfix k::testing Changes of project tests labels Jul 1, 2025
@ChabanovX
Copy link
Contributor Author

Simply overriding flags in PlatformUtils is not enough - we should also override some methods, that call native plugins, so we do not get any exceptions.

@ChabanovX
Copy link
Contributor Author

Right now window_manager channel still causing problems, might mock it too.

@ChabanovX ChabanovX marked this pull request as draft July 1, 2025 18:39
@ChabanovX ChabanovX changed the title DRAFT: Add platform mocking e2e (#1312) Draft: Add platform mocking e2e (#1312) Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix k::testing Changes of project tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add platform mocking during e2e tests
1 participant
0