-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #3677: Changes refreshSettingTab function to fix the loading issue with the e2e test. #7526
Conversation
ecbf6c3
to
3339971
Compare
Assigning @nithusha21 for the first-pass review of this pull request. Thanks! |
@Showtim3 please don't force push :) |
Codecov Report
@@ Coverage Diff @@
## develop #7526 +/- ##
============================================
+ Coverage 73.27% 83.43% +10.16%
============================================
Files 893 1099 +206
Lines 39176 63195 +24019
Branches 3617 3617
============================================
+ Hits 28704 52723 +24019
Misses 9316 9316
Partials 1156 1156
|
Codecov Report
@@ Coverage Diff @@
## develop #7526 +/- ##
========================================
Coverage 83.63% 83.63%
========================================
Files 1104 1104
Lines 64007 64007
Branches 3621 3621
========================================
Hits 53530 53530
Misses 9318 9318
Partials 1159 1159
|
@kevinlee12 hey m sorry for that, It's a habit i picked up at work to have maximum one commit per PR. Anyways, I'll keep that in mind. |
Okay, just make sure to be careful in the future. |
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.
Overall LGTM from my perspective. not very sure about the changes to settingsTab.js however!
expInput.sendKeys(element, protractor.Key.ENTER); | ||
}); | ||
|
||
const saveChangesButton = element(by.css( |
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.
This block is not very readable. Can you add newlines in between logical block of statements?
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.
Done!
@@ -139,6 +139,18 @@ var createAndPublishExploration = function( | |||
publishExploration(); | |||
}; | |||
|
|||
var createAddAndPublish = function( |
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.
Pick a more descriptive name. Create, add (what?) and publish what? I think it should be something like createAddIneractionAndPublishExp()
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.
Done
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.
Done
@DubeySandeep can you PTAL as a codeowner. I am not sure about the changes to your files! |
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 one nit, @nithusha21 covered most of it.
}; | ||
|
||
ctrl.refreshSettingsTab = function() { | ||
// Ensure that ExplorationStatesService has been initialized before | ||
// getting the state names from it. Otherwise, navigating to the | ||
// getting the state names from it. (Otherwise, navigating to the |
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.
Remove (
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.
Done
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.
Done
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.
LGTM for the code owner file.
Explanation
Fix #3677: So the the settingsTab.template.html changes are inspired from PR 6755, and I have wrote a e2e test for the same.
Checklist
python -m scripts.pre_commit_linter
andbash scripts/run_frontend_tests.sh
.