This file contains hidden or 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 jxl.CellType; | |
import jxl.CellView; | |
import jxl.format.Alignment; | |
import jxl.format.Border; | |
import jxl.format.BorderLineStyle; | |
import jxl.format.Colour; | |
import jxl.format.VerticalAlignment; | |
import jxl.write.Label; | |
import jxl.write.WritableCell; | |
import jxl.write.WritableCellFormat; |
This file contains hidden or 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
// PROBLEM: | |
// ======== | |
// | |
// If you have a list of 'something', perhaps links to another page, and you want to click each item, | |
// then run some tests (and possibly click more links in the next page and run tests etc...). | |
// You could have dozens (or even hundreds) of tests per list item. | |
// In AngularJS E2E you need to enclose the whole thing in ONE "it" statement | |
// (because otherwise you cannot see the 'element' object), something like this: | |
it ('clicking each link takes you to the correct page', function() { |
This file contains hidden or 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 | |
// | |
<a id="msg1">To start making payments you need to | |
verify your email address by clicking | |
the link in the confirmation email ... | |
</a> | |
// |
This file contains hidden or 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 | |
// | |
// NOTE: I am using different names for "id" and "ng-model" here so you can clearly see | |
// which one I need to use at different parts of the AngularJS E2E test. | |
// | |
<input type="text" id="dateField" ng-model="myDate"/> | |
// | |
// AngularJS E2E test. |
This file contains hidden or 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
// | |
// Example object. | |
// | |
var DOM_matchers = { | |
pageURL : "/startPage", | |
emailBox : {model:"emailAddress", selector:"#emailAddress"}, | |
passwordBox: {model:"password" , selector:"#password"}, | |
enterBTN : {selector:".enterBTN"} | |
}; |
This file contains hidden or 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
// | |
// 2 pages: | |
// A: "Employee" page containing a link to an employee. | |
// B: "Person" page - click employee and it brings you here. | |
// There is an AngularJS binding called "person.name" which | |
// should match the Employee's name you clicked on. | |
// | |
describe('The link in the Employee screen', function() { | |
it('takes you to the correct "Person" page', function() { |