LMS Navigate Course section lettuce test is flaky. Convert to bok-choy.

Description

In lms/djangoapps/courseware/features/navigation.feature, this scenario is flaky.
According to Splunk, it has failed and passed on the same commit (probably by people issuing the 'jenkins run lettuce' command to get a clean build on their PR) 20 times in the last 7 days. It also caused failures in 4 out of 8 master builds last Friday.

Scenario: I can navigate to a section
Given I am viewing a course with multiple sections
When I navigate to a section
Then I see the content of the section

Stacktrace

1 2 3 4 5 6 7 8 9 10 Traceback (most recent call last): File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/lettuce/core.py", line 144, in __call__ ret = self.function(self.step, *args, **kw) File "/home/jenkins/workspace/edx-platform-test-subset/lms/djangoapps/courseware/features/navigation.py", line 120, in then_i_see_the_content_of_the_section wait_for_problem('Problem 2') File "/home/jenkins/workspace/edx-platform-test-subset/lms/djangoapps/courseware/features/navigation.py", line 186, in wait_for_problem world.wait_for(wait_func) File "/home/jenkins/workspace/edx-platform-test-subset/common/djangoapps/terrain/ui_helpers.py", line 389, in wait_for raise TimeoutException(msg) TimeoutException: Message: Timed out after 5 seconds.

Really the .feature file only has 3 simple navigation tests.
So rather than spend time and effort troubleshooting the failure cause a better approach is:

  • check the existing bok-choy tests to see if they cover these scenarios already

  • if not, then convert to bok-choy

  • remove the lettuce tests

    • delete navigation.feature

    • delete navigation.py. If there are utility functions in there used by other tests, move them to somewhere common.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Muddasser Hussain

Reporter

JesseZ

Labels

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Sprint

None

Priority

CAT-3
Configure