Comparing version 0.0.14 to 0.0.15
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
* Amaze testing suite | ||
* v.0.0.14 | ||
* v.0.0.15 | ||
* | ||
@@ -68,8 +68,4 @@ * https://npmjs.org/package/amaze-tdd | ||
Agent: agent, | ||
Options: options | ||
// Browser: new webdriver.Builder() | ||
// .forBrowser(agent) | ||
// // .withCapabilities(webdriver.Capabilities.chrome()) // not sure this is necessary | ||
// .setChromeOptions(options) | ||
// .build() | ||
Options: options, | ||
$: require('selenium-query') | ||
}; | ||
@@ -76,0 +72,0 @@ |
{ | ||
"name": "amaze-tdd", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "A package for conducting functional front-end tests.", | ||
@@ -12,2 +12,3 @@ "dependencies": { | ||
"mocha": "^3.1.2", | ||
"selenium-query": "^0.50.35", | ||
"selenium-webdriver": "^3.0.0-beta-3" | ||
@@ -14,0 +15,0 @@ }, |
@@ -59,2 +59,5 @@ # Amaze test-driven development | ||
### 0.0.15 | ||
* Added a jQuery wrapper to make working with Selenium easier | ||
### 0.0.14 | ||
@@ -61,0 +64,0 @@ * Making Chrome plugin path work regardless of project |
@@ -12,9 +12,9 @@ var Amaze = require('../lib/amaze'); | ||
return Browser.getTitle().then(function(title) { | ||
Amaze.Expect(title).to.equal('Google'); | ||
}) | ||
return Amaze.Expect(title).to.equal('Google'); | ||
}); | ||
}); | ||
test('it can find the search box', function() { | ||
return Browser.findElement(Amaze.By.name('q')).then(function(search) { | ||
Amaze.Expect(search).to.not.be.null; | ||
return Amaze.$(Browser).find('input[name="q"]').then(function(search) { | ||
return Amaze.Expect(search).to.not.be.null; | ||
}); | ||
@@ -25,7 +25,7 @@ }); | ||
return Browser.get('https://www.google.com/?noj=1').then(function() { | ||
return Browser.findElement(Amaze.By.name('q')).then(function(search) { | ||
return search.sendKeys('Deque accessibility').then(function() { | ||
return Amaze.$(Browser).find('input[name="q"]').then(function(search) { | ||
return Amaze.$(search).val('Deque accessibility').then(function() { | ||
search.sendKeys(Amaze.Webdriver.Key.ENTER); | ||
return Browser.getTitle().then(function(title) { | ||
Amaze.Expect(title).to.equal('Deque accessibility - Google Search'); | ||
return Amaze.Expect(title).to.equal('Deque accessibility - Google Search'); | ||
}); | ||
@@ -32,0 +32,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81
92597803
8
5164
+ Addedselenium-query@^0.50.35
+ Addedatma-class@1.1.84(transitive)
+ Addedatma-utils@0.1.41(transitive)
+ Addedselenium-query@0.50.40(transitive)