app/assets/javascripts/netzke/testing/helpers/queries.js.coffee in netzke-testing-0.11.2 vs app/assets/javascripts/netzke/testing/helpers/queries.js.coffee in netzke-testing-0.12.0.beta

- old
+ new

@@ -1,10 +1,10 @@ # Query helpers will return a string denoting what was searched for, when a component/element itself could not be found. This can be used by other helpers to display a more informative error. # KNOWN ISSUE: if the passed parameter contains symbols like "():,.", it results in an invalid query. Ext.apply window, header: (title) -> - Ext.ComponentQuery.query('header{isVisible(true)}[title="'+title+'"]')[0] || 'header ' + title + Ext.ComponentQuery.query('panel{isVisible(true)}[title="'+title+'"]')[0] || 'header ' + title tab: (title) -> Ext.ComponentQuery.query('tab[text="'+title+'"]')[0] || 'tab ' + title panelWithContent: (text) -> @@ -26,10 +26,10 @@ # used as work-around for the invalid query problem currentPanelTitle: -> panel = Ext.ComponentQuery.query('panel[hidden=false]')[0] throw "Panel not found" if !panel - panel.getHeader().title + panel.getHeader().getTitle().text combobox: (name) -> Ext.ComponentQuery.query("combo{isVisible(true)}[name='"+name+"']")[0] || 'combobox ' + name