UNPKG

intern-cli

Version:

The command line interface for Intern

28 lines (26 loc) 629 B
define([ 'require', 'intern!object', 'intern/chai!assert' ], function ( require, registerSuite, assert ) { registerSuite({ name: 'hello', 'check contents': function () { // Functional tests should return a command chain based on the remote object return this.remote // Initialize the find timeout (the default is driver-specific, and may be 0) .setFindTimeout(5000) // Use require.toUrl to get a relative URL to a resource .get(require.toUrl('./page.html')) .findByClassName('bar') .getVisibleText() .then(function (text) { assert.strictEqual(text, 'Foo'); }); } }); });