mirror of
https://github.com/maputnik/editor.git
synced 2026-01-07 14:00:01 +00:00
Initial webdriver test.
This commit is contained in:
6
test/specs/config.js
Normal file
6
test/specs/config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var config = {};
|
||||
|
||||
config.port = 9001;
|
||||
config.baseUrl = "http://localhost:"+config.port;
|
||||
|
||||
module.exports = config;
|
||||
15
test/specs/simple.js
Normal file
15
test/specs/simple.js
Normal file
@@ -0,0 +1,15 @@
|
||||
var assert = require('assert');
|
||||
var config = require("./config");
|
||||
|
||||
|
||||
describe('maputnik', function() {
|
||||
|
||||
it('check logo exists', function () {
|
||||
browser.url(config.baseUrl);
|
||||
browser.waitForExist(".maputnik-toolbar-link");
|
||||
|
||||
var src = browser.getAttribute(".maputnik-toolbar-link img", "src");
|
||||
assert.equal(src, config.baseUrl+'/img/maputnik.png');
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user