Skip to content

Commit

Permalink
refactor(js): replace hardcoded url by this.launchUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
acdmft committed Jul 28, 2023
1 parent e7f169b commit bd751bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nightwatch/custom-commands/loginAs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ module.exports = {
command(role) {
const login = role === 'admin' ? this.globals.adminLogin : ''
const pwd = role === 'admin' ? this.globals.adminPwd : ''
// console.log('this.api.launchUrl ', this.api.launchUrl)
this.navigateTo('http://stable26.local/index.php')
this.navigateTo(this.launchUrl)
this
.waitForElementVisible('body')
.setValue('input#user', login)
Expand Down

0 comments on commit bd751bc

Please sign in to comment.