Skip to content

Bug fix for LaTeX source not saving - #186

Merged
cahrens merged 5 commits into
masterfrom
christina/latex_and_click
Jun 17, 2013
Merged

Bug fix for LaTeX source not saving#186
cahrens merged 5 commits into
masterfrom
christina/latex_and_click

Conversation

@cahrens

@cahrens cahrens commented Jun 17, 2013

Copy link
Copy Markdown

This is an updated version of edx#169. It includes a change Jonah made to make "css_click" more robust so that I do not have to put in waits.

@JonahStanley

Copy link
Copy Markdown
Contributor

👍
Everything works for me.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to rewrite these steps so it says:
Given I have created a LaTeX Problem
When I edit the High Level Source
Then my change to the High Level Source is persisted
And the High Level Source persists //or something like that

just to follow more closely Given-When-Then

@cahrens

cahrens commented Jun 17, 2013

Copy link
Copy Markdown
Author

All the tests pass for me too. @dmitchell here is the pull request. As we discussed, I'm going to merge to master when it opens up, and I'm happy to iterate on these tests if they continue to be flaky on your mac.

@dmitchell

Copy link
Copy Markdown
Contributor

I still got 2 failures on fasttest..cms
Scenario: Test editing key value
#
cms/djangoapps/contentstore/features/advanced-settings.feature:22
Given I am on the Advanced Course Settings page in Studio
# cms/djangoapps/contentstore/features/a Given I am on the
Advanced Course Settings page in Studio #
cms/djangoapps/contentstore/features/advanced-settings.py:23
When I edit the value of a policy key and save
# cms/djangoapps/contentstore/features/a When I edit the
value of a policy key and save #
cms/djangoapps/contentstore/features/advanced-settings.py:40
Then the policy key value is changed
# cms/djangoapps/contentstore/features/a Then the policy key
value is changed #
cms/djangoapps/contentstore/features/advanced-settings.py:93
Traceback (most recent call last):
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/lettuce/core.py",
line 143, in call
ret = self.function(self.step, _args, *_kw)
File
"/Users/dmitchell/mitx_all/edx-platform/cms/djangoapps/contentstore/features/advanced-settings.py",
line 94, in the_policy_key_value_is_changed
assert_equal(get_display_name_value(), '"foo"')
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
line 511, in assertEqual
assertion_func(first, second, msg=msg)
File
"/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
line 504, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: u'"Robot Super Course"' != '"foo"'

Scenario: High Level source is persisted for LaTeX problem (bug STUD-280)
#
cms/djangoapps/contentstore/features/problem-editor.feature:69
Given I have created a LaTeX Problem
# cms/djangoapps/conten Given I have
created a LaTeX Problem
# cms/djangoapps/contentstore/features/problem-editor.py:155
When I edit and compile the High Level Source
# cms/djangoapps/conten When I edit and
compile the High Level Source
# cms/djangoapps/contentstore/features/problem-editor.py:163
Then my change to the High Level Source is persisted
# cms/djangoapps/conten Then my change to
the High Level Source is persisted
# cms/djangoapps/contentstore/features/problem-editor.py:171
And when I view the High Level Source I see my changes
# cms/djangoapps/conten And when I view the
High Level Source I see my changes
# cms/djangoapps/contentstore/features/problem-editor.py:179
Traceback (most recent call last):
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/lettuce/core.py",
line 143, in call
ret = self.function(self.step, _args, *_kw)
File
"/Users/dmitchell/mitx_all/edx-platform/cms/djangoapps/contentstore/features/problem-editor.py",
line 181, in high_level_source_in_editor
world.css_find('.launch-latex-compiler').find_by_css('a').click()
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/splinter/driver/webdriver/init.py",
line 341, in click
self._element.click()
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py",
line 51, in click
self._execute(Command.CLICK_ELEMENT)
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.py",
line 225, in _execute
return self._parent.execute(command, params)
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 160, in execute
self.error_handler.check_response(response)
File
"/Users/dmitchell/mitx_all/python/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py",
line 149, in check_response
raise exception_class(message, screen, stacktrace)
ElementNotVisibleException: Message: u'Element must be displayed to
click'

On Mon, Jun 17, 2013 at 2:18 PM, Christina Roberts <notifications@github.com

wrote:

All the tests pass for me too. @dmitchell https://github.com/dmitchellhere is the pull request. As we discussed, I'm going to merge to master
when it opens up, and I'm happy to iterate on these tests if they continue
to be flaky on your mac.


Reply to this email directly or view it on GitHubhttps://github.com/edx/pull/186#issuecomment-19563831
.

… Don's mac.

css_click will try clicking multiple times.
@cahrens

cahrens commented Jun 17, 2013

Copy link
Copy Markdown
Author

@dmitchell I made a change that should fix the 2nd failure. As far as the first, it makes no sense to me (as other test points that type in the fields pass). The next time you run these tests and encounter a failure, please pull me over so I can actually watch the test run. I think that's the only way I can understand what is going on.

cahrens pushed a commit that referenced this pull request Jun 17, 2013
Bug fix for LaTeX source not saving
@cahrens
cahrens merged commit 080c5e4 into master Jun 17, 2013
@cahrens
cahrens deleted the christina/latex_and_click branch June 17, 2013 20:36
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
mtyaka pushed a commit to mtyaka/edx-platform that referenced this pull request Aug 27, 2014
…g-progress-tab

ziafazal/api-fix-bug-progress-tab: fix progress
ataki pushed a commit to ataki/edx-platform that referenced this pull request Mar 26, 2015
…e_analytics_access

  Fix access so course staff can access inline analytics.
CrewS pushed a commit to CrewS/edx-platform-1 that referenced this pull request Jan 4, 2019
edx-secure pushed a commit that referenced this pull request Aug 12, 2020
rediris pushed a commit to gymnasium/edx-platform that referenced this pull request Feb 25, 2021
merge appsembler/ficus/develop to appsembler/ficus/master branch
macdiesel pushed a commit to macdiesel/edx-platform that referenced this pull request Mar 30, 2026
Reverts openedx#173

Because, shifting to V2 of Forum started giving errors in production.

It gave a rise to "Slow Queries" in production
macdiesel pushed a commit to macdiesel/edx-platform that referenced this pull request Mar 30, 2026
…nedx#193)

This PR brings the commits related to removal of waffle flag ENABLE_FORUM_V2 and dependency removal of cs_comments_service of Open edX to python forum repo.

This PR is revert of openedx#186 

Which was revert of openedx#173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants