mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[functional testing] Rename getPage util to getUrl
This commit is contained in:
parent
90969d9308
commit
94996e8442
3 changed files with 6 additions and 6 deletions
|
@ -2,13 +2,13 @@ define(function (require) {
|
|||
var registerSuite = require('intern!object');
|
||||
var expect = require('intern/dojo/node!expect.js');
|
||||
var config = require('intern').config;
|
||||
var getPage = require('intern/dojo/node!../utils/getPage');
|
||||
var getUrl = require('intern/dojo/node!../utils/getUrl');
|
||||
|
||||
registerSuite(function () {
|
||||
return {
|
||||
'status': function () {
|
||||
return this.remote
|
||||
.get(getPage(config.kibana, 'status'))
|
||||
.get(getUrl(config.kibana, 'status'))
|
||||
.setFindTimeout(60000)
|
||||
.findByCssSelector('.plugin_status_breakdown')
|
||||
.getVisibleText()
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
var expect = require('expect.js');
|
||||
var getPage = require('../getPage');
|
||||
var getUrl = require('../getUrl');
|
||||
|
||||
describe('getPage', function () {
|
||||
describe('getUrl', function () {
|
||||
it('should be able to convert a config and a path to a url', function() {
|
||||
expect(getPage({
|
||||
expect(getUrl({
|
||||
protocol: 'http',
|
||||
hostname: 'localhost',
|
||||
port: 9220
|
||||
}, 'foo')).to.be('http://localhost:9220/foo');
|
||||
|
||||
expect(getPage({
|
||||
expect(getUrl({
|
||||
protocol: 'https',
|
||||
hostname: 'localhost',
|
||||
}, 'foo')).to.be('https://localhost/foo');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue