-
Notifications
You must be signed in to change notification settings - Fork 61
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
Changed the Environment Reference #3198
Conversation
…nt in ValueExpressionEditorPage
@@ -941,16 +942,26 @@ private void xTestButton_Click(object sender, RoutedEventArgs e) | |||
{ | |||
if (mVE == null) | |||
{ | |||
if (mContext.Environment == null && mEnvs != null && mEnvs.Count > 0) | |||
if (mContext.Environment == null && mEnvs != null && mEnvs.Count > 0 && WorkSpace.Instance.UserProfile.RecentEnvironment != Guid.Empty) |
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.
Please keep old condition as is in case WorkSpace.Instance.UserProfile.RecentEnvironment is empty or null or if GetCurrentEnvironment() returns null
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.
ok
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.
Implemented the requested change
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.
add else part to this if which will return first environment in case WorkSpace.Instance.UserProfile.RecentEnvironment is empty or null
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 have added the requested changes
Changed the Environment Reference from the first in the environment variables list to the currently selected Environment.
This change was made for clients to use Environment Variables in Page Object Model. Now clients can use variables of the currently selected environment.
Thank you for your contribution.
Before submitting this PR, please make sure: