Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
e-2-e js functional tests
  • Loading branch information
thabti committed Jul 24, 2016
commit 12e97c93dd61375bf01cbfe73c826fbb534bc625
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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no more async await?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah apparently latest version of webdriverio handles all the functions in a sync way.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✂️

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