-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: extract user variable * fix: using # in aliases to avoid file deletion * fix: added preinstall step * fix: package name * fix: jira service * lodash replaced with deepmerge * import replaced by const * remove _ * test * wdio * revert * remove local service * fix * define jiraService * change selector * fix * fix * removes log line * fix * test * tesr * wdio.conf * test * test * test * test * fix * test * define jira servrice * test te * test * test * isEnabled * fix * clean up
- Loading branch information
Showing
21 changed files
with
80 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
import { Given } from 'cucumber'; | ||
|
||
import { isVisible} from '@support/check'; | ||
import { waitForVisible } from '@support/wait'; | ||
import { isVisible} from '#support/check'; | ||
import { waitForVisible } from '#support/wait'; | ||
|
||
import { login } from '@support/action'; | ||
import { dashboardPage } from '@page_objects/Dashboard'; | ||
import { login } from '#support/action'; | ||
import { dashboardPage } from '#page_objects/Dashboard'; | ||
|
||
Given( | ||
/^I am logged in$/, | ||
() => { | ||
// login as standard user | ||
login('system', 'System123'); | ||
waitForVisible(dashboardPage.mainPageDiv); | ||
isVisible(dashboardPage.mainPageDiv); | ||
} | ||
); | ||
Given( | ||
/^I am logged in$/, | ||
() => { | ||
// login as standard user | ||
login(browser.config.superUser, browser.config.superUserPassword); | ||
waitForVisible(dashboardPage.mainPageDiv); | ||
isVisible(dashboardPage.mainPageDiv); | ||
} | ||
); | ||
|
||
Given( | ||
/^I am authenticated$/, | ||
() => { | ||
login('system', 'System123'); | ||
Given( | ||
/^I am authenticated$/, | ||
() => { | ||
login(browser.config.superUser, browser.config.superUserPassword); | ||
|
||
browser.waitUntil(() => { | ||
const url = browser.getUrl(); | ||
return url.indexOf('dhis-web') > -1 && url.indexOf('#') > -1 && url.indexOf('login.action') === -1; | ||
}, 10000); | ||
} | ||
); | ||
|
||
browser.waitUntil(() => { | ||
const url = browser.getUrl(); | ||
return url.indexOf('dhis-web') > -1 && url.indexOf('#') > -1 && url.indexOf('login.action') === -1; | ||
}, 10000); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.