tools: Testing should not begin until element fixtures are ready.

I have an element that goes through some startup steps but the test environment initiates the test before the element has finished setting up. I ran into this error when the setup was done in a created callback. Currently, I’m attempting to performing the setup in an anonymous function that sets a parameter’s default value:

client: {
        type: Object,
        value: function(){
          //do suff
          return object;
        }
      }

Ideally, testing should not begin until the elements have been fully constructed. I’m not sure if there is a nice event we can watch for, but perhaps we could wait until 100ms after the ready function has been called?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@indolering I think this ticket can serve as a documentation 😃 You can raise a PR and it to the README if you like. The workaround is pretty straightforward and I can imagine preventing tests from running until all elements have been attached requires more work.