Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/candy/functional/basics.js')
-rw-r--r--tests/candy/functional/basics.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/candy/functional/basics.js b/tests/candy/functional/basics.js
new file mode 100644
index 0000000..4699b08
--- /dev/null
+++ b/tests/candy/functional/basics.js
@@ -0,0 +1,24 @@
+/*global define */
+
+var exampleUrl;
+
+if (process.env.CANDY_VAGRANT === 'false' && process.env.CI !== 'true') {
+ exampleUrl = 'http://localhost:8080/';
+} else {
+ exampleUrl = 'http://localhost:80/';
+}
+
+define([
+ 'intern!bdd',
+ 'intern/chai!expect'
+], function (bdd, expect) {
+ bdd.describe('Basic chat operation', function () {
+ bdd.it('should load the correct page', function () {
+ return this.remote.get(exampleUrl)
+ .getPageTitle()
+ .then(function (title) {
+ expect(title).to.equal('Candy - Chats are not dead yet');
+ });
+ });
+ });
+});