You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
After loading a fixture I can access the elements correctly inside an "describe"-block. However, when trying to access them inside a "it"-function, jquery will return an empty object.
What is the reason? Is the "it"-function running asynchronously?
Example that does not work:
it("should have a length of 1",function(){expect($(".x").length).toBe(1);});// will cause "expected 0 to be 1"
The text was updated successfully, but these errors were encountered:
After loading a fixture I can access the elements correctly inside an "describe"-block. However, when trying to access them inside a "it"-function, jquery will return an empty object.
What is the reason? Is the "it"-function running asynchronously?
Example that does not work:
The text was updated successfully, but these errors were encountered: