fix: correct launchUrl typo and promote demo test from xfail#3778
Open
Kunall7890 wants to merge 1 commit into
Open
fix: correct launchUrl typo and promote demo test from xfail#3778Kunall7890 wants to merge 1 commit into
Kunall7890 wants to merge 1 commit into
Conversation
Fixes sandstorm-io#3615 - Fix typo in loginDemo.js: this.launchUrl -> this.launch_url (this.launchUrl was undefined, causing navigation to fail) - Remove xfail guard from basic.js now that the test is fixed - Remove unused run_xfail import from basic.js
Collaborator
|
The test didn't pass in CI. I'm actually guessing though that could be because of #3765. |
Author
|
Hi @ocdtrekkie — thanks for the review! Understood on #3765 potentially causing the CI failure. Since this is a Happy to rebase or make any other adjustments needed on my end. |
Collaborator
|
@mnutt Michael, how do you think we can test this? |
Contributor
|
@Kunall7890 it looks like Sandstorm changed the copy from "Demo" to "Create Account" back in 2015. I made a small change here: mnutt@df12f950 If you want to pull it into your branch you could do: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #3615
commands/loginDemo.jshad a typo on the first.url()call:this.launchUrldoes not exist in Nightwatch — the correct propertyis
this.launch_url(snake_case). This caused the browser to navigateto
undefined/demoinstead of the actual server URL, making the demologin test fail immediately on every run.
Changes
tests/commands/loginDemo.jsthis.launchUrl→this.launch_urltests/tests/basic.jsif (run_xfail)guard aroundTest demo login commandrun_xfailimportHow to Verify
Test demo login commandshould now pass instead of failingon the first navigation step.