Socket
Socket
Sign inDemoInstall

amaze-tdd

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amaze-tdd - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

10

lib/amaze.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc