Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
e-2-e js functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thabti committed Jul 23, 2016
1 parent 14b8980 commit dfe94f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/functional/pageobjects/BasePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = class BasePage {
};
}


wait(time = 200) {

browser.pause(time);
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/pageobjects/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class HomePage extends BasePage {

}

clickOntheSurahByName(number) {
clickOntheSurahByNumber(number) {
const surahs = browser.elements('.row .col-xs-7 span');
const surahID = surahs.value[number].ELEMENT;
browser.elementIdClick(surahID);
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/specs/HomePageTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Home Page', () => {

it('Should click a surah from the list of surahs and land on the surah page', () => {
homePage.goHome();
const url = homePage.clickOntheSurahByName(1);
const url = homePage.clickOntheSurahByNumber(1);
expect(url).to.contain('/1');

});
Expand Down

0 comments on commit dfe94f0

Please sign in to comment.