This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Preferred hierarchy for locators: | |
id/name/css/xpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html pages for adding ids: | |
apps/addons/templates/addons/impala/ | |
css media/css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The process of adding a validator test | |
When a validator has a problem, someone (Jorge probably) files a bug with the error message. | |
Matt isolates the bug and writes a unit test for it. | |
A functional test also needs to be written. The functional test runs the addon through the validator and checks that the same error messages does not show up. | |
Example: | |
Here is a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=659330 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is an attempt to sort out having tests for zamboni pages and impala pages in one codebase. | |
Tests will get marks: | |
@pytest.mark.impala | |
def test_the_header_layout(self, testsetup): | |
@pytest.mark.zamboni | |
def test_the_header_layout(self, testsetup): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directed/digraph - edges are ordered, have direction | |
antiparallel edges - edges that go both ways are ok. should never have parallel | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Filename matches first classname | |
* filename is lowercase with underscores between words | |
* class name is camelcase and THE SAME as file name | |
Files with tests do not contain "self.selenium" | |
Locators are in CSS - (btw css can do children) | |
http://www.w3.org/TR/CSS2/selector.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node.lastChild-1 for max page number. (next link is last) | |
// Access single unordered list: [0] index | |
var unorderedList = document.getElementsByTagName('ul')[0]; | |
// Create Node list of all list items within the UL: | |
var allListItems = unorderedList.getElementsByTagName('li'); | |
// Now, we can loop through each list item using a FOR loop: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Workflow: | |
From forked & updated repo: | |
create branch | |
Either: | |
-git branch litmus_11759_test_blank_search (create branch) | |
-git checkout litmus_11759_test_blank_search (switch to that branch) | |
or: | |
-git checkout -b litmus_11759_test_blank_search (create & switch to branch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pagerank | |
4 import sys | |
5 import simplejson | |
6 | |
7 file = sys.argv[1] | |
8 json_data = open(file) | |
9 #print json_data | |
10 pages_list = json.load(json_data) | |
11 print pages_listt | |
12 print "#######" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#since I've got Snow Leopard, I have to start Firefox with jssh. | |
/Applications/Firefox.app/Contents/MacOS/firefox-bin -jssh | |
#now start irb | |
irb | |
>> require "firewatir" | |
=> true | |
>> b = Watir::Browser.new | |
=> #<FireWatir::Firefox:0x101765dc0 url="" title=""> |