Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
[JENKINS-40256] use a semantic selector (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffmeyers committed Dec 30, 2016
1 parent 78aa72e commit e9087cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 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
Expand All @@ -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');
});
},
Expand Down

0 comments on commit e9087cb

Please sign in to comment.