Skip to content
Permalink
Browse files
[JENKINS-40256] use a semantic selector
  • Loading branch information
Cliff Meyers committed Dec 29, 2016
1 parent b3b447e commit ce190beeb3685b133bd638c357aac612fe138f66
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 ce190be

Please sign in to comment.