Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-select inside directive doesn't update selected value in directive Unit Tests #2989

Closed
jmuharsky opened this issue May 26, 2015 · 1 comment
Labels
needs: unit tests This PR needs unit tests to cover the changes being proposed
Milestone

Comments

@jmuharsky
Copy link

REPRO STEPS

  1. Create a directive that uses an md-select in the template.
  2. Create a unit test that compiles the directive you created in step Raised buttons don't have shadows #1.
  3. Modify the model at runtime, scope.$digest() it, and evaluate the contents of the md-select.

CURRENT BEHAVIOR

The box remains in "unselected" mode, and any attempts to interrogate its HTML structure show only the placeholder text as the selected text. Note that this directive works as expected in "production" mode; it only exhibits this behavior in unit tests.

EXPECTED BEHAVIOR

Ideally, md-select would expose a value attribute or something that can be used to easily determine the selected value. But in general, md-select should update based on bound model changes inside unit tests.

@ThomasBurleson ThomasBurleson modified the milestone: Backlog May 27, 2015
@ThomasBurleson ThomasBurleson modified the milestones: post-1.0 , Backlog Sep 4, 2015
@ThomasBurleson ThomasBurleson modified the milestones: post-1.0 , Backlog Jan 5, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.

@Splaktar Splaktar added the needs: unit tests This PR needs unit tests to cover the changes being proposed label Mar 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: unit tests This PR needs unit tests to cover the changes being proposed
Projects
None yet
Development

No branches or pull requests

4 participants