From 9e9b25662018e55ca16e63c79a0e9d7919e6eea6 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 17 Apr 2017 11:50:17 +0000 Subject: [PATCH] Change unit tests to check English translation engine --- index.js | 2 +- tests.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8943dd3..c9d3531 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ var page_title = document.getElementsByTagName('title')[0]; var ignore_hashchange = false; -var language = 'en'; +var language = 'pl'; var lang_select = document.getElementById('lang-select'); var stop_id = ''; diff --git a/tests.js b/tests.js index 9e348c8..d82b00b 100644 --- a/tests.js +++ b/tests.js @@ -27,15 +27,15 @@ }); casper.test.begin('Translation engine', 2, function(test) { - casper.start('http://127.0.0.1:8080/#!pl', function() { - test.assertTitleMatches(/odjazdy/i, 'Page title: ...odjazdy...'); + casper.start('http://127.0.0.1:8080/#!en', function() { + test.assertTitleMatches(/departures/i, 'Page title: ...departures...'); }); casper.wait(200, function() { test.assertSelectorHasText( '[data-translate=header_line]', - 'Linia', - 'Translation: Line -> Linia' + 'Line', + 'Translation: Linia -> Line' ); }); -- Gitblit v1.9.1