jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Integration with Magic Lamp #363

Closed rstudner closed 9 years ago

rstudner commented 9 years ago

To note -- this isn't your bug (I don't think). But, I wanted to ask to see if you had suggestions.

I have 250 tests. They pass, I love me some teaspoon ;)

So, I decided, I hate keep fixtures up to date, i'll use magic lamp to try to automate that.

So, for "test #1" I use magic lamp to go ahead and supply the fixture.

Now, in test #155, I am just loading disk-based fixtures with this.fixtures = fixture.load etc etc

So.. the test #155, is "finding something" from test #1's fixture.... somehow...

(basically a select w/ some options in it.. test #1 sets that to have "1" option... the fixture HTML for test #155 has a select w/ the same dom ID, but has 17 options in it... the test fails because it says there is 1, but it expects 17).

Any thoughts/ideas/experiments I should try to ferret out what might be a cause/source? I of course asked on the magic lamp side too.

rstudner commented 9 years ago

Well, figured out the "why".. just have to figure out what to do

(magic lamp creates it own div, and puts the fixture in there.. thus, I had 2 select's with the same ID lah lah)

Evil!