-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Instructor: home page: give menu option to edit a course #8541 #8725
Instructor: home page: give menu option to edit a course #8541 #8725
Conversation
Hi anyone can help with the test cases? The fail test cases mainly come from StudentHomePageUiTest, StudentAdminPageUiTest, InstructorFeedbackQuestionCopyActionTest. But I only changed the instructor home page, any idea where the failing test case may be from so that I can make the changes? |
You'll have to run God mode on the failing UI tests to ensure that the expected DOM structure is updated to match the changes you made.
|
Thanks for your tip! I am trying to run with GodMode but the test cases causing the problem either failed or ignored and I cannot seem to make the necessary changes to UI. |
@jacoblipech Can you give the stack trace of the failed tests? Also, do the test suites pass in |
hi @bqnguyen94 I am really sorry for the delay but after a few days of trying, I have finally figured out the problem. GodMode works after I download firefox v46.0 to run the test. And I realised that I should not run it multiple times as the values for time will keep changing. Now I have a much better idea on how Teammates work. Hopefully you can help me to review again? Thank you so much. |
@jacoblipech what browser did you use before (and fail)?
Are you sure? Godmode is supposedly immune to this kind of change. Which tests are you running and where does it fail? |
@wkurniawan07 I ran GodMode using the latest version of Firefox which is v59.0. Basically the Firefox browser opens up and nothing changes after that. The UI tests are still ignored. After changing to Firefox v46.0, all the tests run and works well. Actually, I ran the tests over all CI Tests using GodMode. Somehow, GodMode updated the UI to the actual time I ran the tests instead of being |
Hi @jacoblipech, can you rebase your branch onto master and force push? There are unrelated commits being captured here. |
Sounds like #8640 |
@jacoblipech how exactly do you keep your fork in sync? You're not supposed to cherry-pick the commits one by one... |
@wkurniawan07 I am so sorry. Actually I used my master to pull from the teammates repo, then I rebase my branch onto the master and push. Then it caused all the commits from other people shown as well. I will look into the issue and solve it. Thanks. |
692669d
to
9711ea7
Compare
Sorry for the delay. I think this PR is ready for review. Thank You. |
@jacoblipech I think you reverted your change in 9ed045a. I pulled your branch and the View/Edit button does not appear. At this point it might be best to start on a fresh branch since there are duplicate commits, commit hashes are no longer consistent and the original change can quite easily be replicated. |
Also, you may want to double-check your git config settings since your identity looks a little weird to git and GitHub. It shows up in the patch as
Need to run this inside Git Bash
Change the fields to your name and email. |
@craaaa and @darrenwee I see. Thanks a lot for the help. I will make the necessary changes. |
9d3b1ab
to
c33c53d
Compare
c33c53d
to
c5e5f57
Compare
@craaaa I think this is ready for review. Thank you :) |
…after running GodMode
1c22aea
to
db12bdf
Compare
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! Thanks for contributing 👍
Fixes #8541
Outline of Solution
In the instructor homepage, I added the logic of "edit/view" button for instructors to courses as both edit courses and edit instructors are in the same page with the same URL. If in the future the edit instructors and edit courses are in different pages, then we can edit the button for courses.