Skip to content

Commit

Permalink
Add DOM contexts. Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 8, 2010
1 parent 41d4207 commit 45773b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser.context.test.js
Expand Up @@ -51,8 +51,8 @@ module.exports = {
var browser = tobi.createBrowser(app);
browser.get('/search', function(res, $){
$('form').should.have.length(2);
browser.within('form#post-search', function(){
$('form').should.have.length(0);
browser.within('div:nth-child(2)', function(){
$('form').should.have.length(1);
browser
.type('query', 'foo bar')
.submit(function(res){
Expand Down

0 comments on commit 45773b0

Please sign in to comment.