mardi 20 octobre 2015

I'm wallowing in a Protractor black hole. Would anyone be willing to review my spec.js?

It was getting bulky so I pared it down to <150 lines and put it all in one file to analyze what my issues are, and it brought to light some things I don't know how to deal with.

One that's jumping out at me is that the tutorials separate variables, functions, and test scenarios ('it' statements), and I don't know which of the three is the best place to pass in things like string values.

There is probably a lot of logic in it that obviously won't work. I'm learning JavaScript and AngularJS and everything else as I go, so any critique about any of that is appreciated too.

Anyway, here it is. I just dropped it into a jsfiddle so you'd be able to see it. Thanks! http://ift.tt/1LCgvrk

describe ('Protractor Test', function (){};

Aucun commentaire:

Enregistrer un commentaire