Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
[#1051] fixed language test
Browse files Browse the repository at this point in the history
  • Loading branch information
razu9861 committed Oct 18, 2017
1 parent 2dd5a4c commit b75b3fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/language_tset.js → tests/language_test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="./steps.d.ts" />
Feature('Language', { retries: 3 });
var languages = [
{ lan: "Spanish", log: "Iniciar sesión" },
{ lan: "Español", log: "Iniciar sesión" },
{ lan: "English", log: "Login" },
{ lan: "Arabic", log: "دخول" },
{ lan: "Urdu", log: "لاگ ان" }
Expand All @@ -14,9 +14,7 @@ Scenario('Test for Language Selection', (I) => {
// Removing this wait will cause the test to hang on occasion.
I.wait(1);
I.selectOption('//*[@id="onLoginLanguage"]', item.lan);
I.waitForStalenessOf("//*[contains(@id, 'login')]", 2);

I.waitForElement("//*[contains(@id, 'login')]", 10);
I.waitForStalenessOf("//*[contains(@id, '#login')]", 2);
I.see(item.log);
});
});

0 comments on commit b75b3fb

Please sign in to comment.