galenframework / galen

Layout and functional testing framework for websites
http://galenframework.com
1.41k stars 163 forks source link

No Error logging when Galen specification file is incorrect, debugging Galen tests #460

Open gameboyzone opened 7 years ago

gameboyzone commented 7 years ago

Hello,

I have had few issues with debugging Galen specification file and JavaScript code. I'd appreciate if you can respond on the following questions -

  1. For my following code in .gspec file, if syntax is incorrect for pageHeader (see two dots), galen does not throw an explicit error if no DOM was found. Can I turn on explicit checking and logging of errors?

` @objects pageHeader css h1..pageHeader

= Main section = @on desktop pageHeader: width ~ 98 % of screen/width css margin-top is "20px" `

  1. How can I debug Galen test.js files in Node? I don't want to spend time debugging from the console messages logged.

  2. If I run a visibility test using isVisible() function on hidden DOM elements, then I see failed status on the test report saying the test failed since the element was hidden. Now do I need to implement custom rules to bypass this rule?

gameboyzone commented 7 years ago

@ishubin