Skip to content

FileDialog tree view does not respect test abstraction IFileSystem #4026

@tznind

Description

@tznind

Describe the bug

TreeView in FileDialog does not respect IFileSystem and instead uses native file system directly. This means tests are not behaving as expected.

Has no effect on production users though.

 _treeView = new() { Width = Dim.Fill (), Height = Dim.Fill () };

 var fileDialogTreeBuilder = new FileSystemTreeBuilder ();
 _treeView.TreeBuilder = fileDialogTreeBuilder;

To Reproduce
Run PressingPopTree fluent test in #4024

Expected behavior
Popped tree should have drives from the mock file system

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Set Project & Milestone
If you have access, please don't forget to set the right Project and Milestone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions