-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(learn): Cross browser testing - correct misleading text #31092
Conversation
Previous text implied that `driver.executeScript("lambda-status=passed");` and `driver.executeScript("lambda-status=failed");` should be ran inside a bash terminal shell instead of inside added inside the `lambdatest_google_test.js` demo code.
Preview URLs External URLs (1)URL:
(comment last updated: 2024-02-16 01:42:52) |
@@ -485,15 +483,15 @@ Let's write an example: | |||
|
|||
When executing numerous automation tests, marking their status as passed or failed makes the task a lot easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose putting these in the example above so that there is no doubt about where they go. Then delete this section and add an explanation below step 5 in the previous section about what this code does.
But perhaps do it in the other PR so that we're only working on one PR per document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it here, because the refactored code and updated tutorial text to reflect changes was merged by the time I got back.
This pull request has merge conflicts that must be resolved before it can be merged. |
to remove confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines of code moved to lambdatest_google_test.js
example to remove confusion.
...en-us/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This pull request has merge conflicts that must be resolved before it can be merged. |
@hamishwillee I ran out of minutes, so I'm not able to fix the |
Previous text implied there was more than one code block in the `google_test.js` example.
...en-us/learn/tools_and_testing/cross_browser_testing/your_own_automation_environment/index.md
Outdated
Show resolved
Hide resolved
@ShamarYarde Sorry for the delay - this wasn't initially assigned to me, and I missed the notification when it was. Will look now. |
…_own_automation_environment/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@ShamarYarde So what you've done is moved the stuff about marking tests as passed or failed from the separate section That said, I think doing it this way is actually reasonable - there isn't a particular need to highlight this option separately in its own section - in fact by putting it in the body of the example you could argue it makes this something that people are more likely to do by default. |
@ShamarYarde I'm going to merge this PR. Do you think you now have bandwidth to look at this case ^^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much!!!
@hamishwillee No, I'm still out of minutes. I don't have a subscription. |
Thanks @ShamarYarde - I've created an issue to track the missing bit in #32401 - does that look about right? As an aside though
|
@hamishwillee I don't remember what I saw when I tried it, but it wasn't working. I just looked at the code I have, and the following lines were commented out which means that they were causing the error I was getting:
The response when I run the command:
|
Thanks! |
Previous text implied that
driver.executeScript("lambda-status=passed");
anddriver.executeScript("lambda-status=failed");
should be ran inside a Bash terminal shell instead of inside added inside thelambdatest_google_test.js
demo code.Running either as a command in a Bash terminal shell results in the following:
if
is ran, and
if
is ran.
Adding either within the
lambdatest_google_test.js
demo code produces respective results on the LambdaTest Automation dashboard. Also, it looks like these should be insideif
andelse
blocks of code.Description
Changed explanatory text to indicate where code should be placed.
Motivation
To allow readers to understand how to mark a test an automation test's status as passed or failed. Also, to remove confusion on where to look to make changes in the Your own remote server section.
Additional details
Related issues and pull requests
"Fixes #31074"