Skip to content
Permalink
Browse files
[JENKINS-40256] use a semantic selector (#91)
  • Loading branch information
cliffmeyers committed Dec 30, 2016
1 parent 78aa72e commit e9087cb63b7bf2674c2226fb64669351c71c6379
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/test/js/i18n/loadGerman.js
@@ -1,4 +1,6 @@
const jobName = 'loadGerman';
const newButtonSelector = '.btn-new-pipeline';

/** @module loadGerman
* @memberof i18n
* @description basic smoke test for i18n
@@ -7,17 +9,17 @@ module.exports = {
/** Load it in German */
'Step 01': function (browser) {
var bluePipelines = browser.page.bluePipelines().navigateLanguage("de");
bluePipelines.waitForElementVisible('.btn-secondary.inverse');
browser.getText('.btn-secondary.inverse', function(response) {
bluePipelines.waitForElementVisible(newButtonSelector);
browser.getText(newButtonSelector, function(response) {
browser.assert.equal(response.value, 'Neue Pipeline');
});
},

/** Load it in The Queens English, God Bless The Queen */
'Step 02': function (browser) {
var bluePipelines = browser.page.bluePipelines().navigateLanguage("en");
bluePipelines.waitForElementVisible('.btn-secondary.inverse');
browser.getText('.btn-secondary.inverse', function(response) {
bluePipelines.waitForElementVisible(newButtonSelector);
browser.getText(newButtonSelector, function(response) {
browser.assert.equal(response.value, 'New Pipeline');
});
},

0 comments on commit e9087cb

Please sign in to comment.