Commit Graph

118 Commits

Author SHA1 Message Date
M. Zulqarnain
a664067323 refactor: pyupgrade in common/tests (#26725) 2021-03-09 18:03:34 +05:00
Jawayria
62ca4742c1 BOM-2351: Removed unused imports from common/test 2021-02-15 19:30:40 +05:00
Jawayria
9e677960bf Applied pylint-amnesty to common/{lib, test, __init__.py} 2021-02-02 15:42:02 +05:00
zia.fazal@arbisoft.com
3d65110383 Removed boy choy acceptance tests
Removed commented code

Fixed broken tests and quality violations

instructor dashboard test fixes

Fixed pep8 quality violation

Removed few remaining non a11y tests

Fixed quality violations

removed edxapp_acceptance setup file
2020-07-13 19:25:57 +05:00
Aarif
98af9ce418 remove useless-supression warnings 2020-05-01 19:42:15 +05:00
Feanil Patel
6e3fe00fff Fix all E303 pep8 errors. 2019-12-30 12:25:38 -05:00
Feanil Patel
9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Matt Hughes
6206ec80b7 Delete flaky test test_comment_deletion_as_student
This test has been flaky in the past; I turned up TNLARCHIVE-530 and
TNLARCHIVE-2147 in JIRA while verifying no one else had actually
gotten it.
2019-09-27 15:18:58 -04:00
Feanil Patel
f5f875401a Fix some of the common test collection issues. (#21340)
* Remove old  performance tests that we haven't been running.

As far as I can tell, these tests to capture HAR files were created 5
years ago and not being run as a part of our suite?  They capture HAR
data that we do nothing with so even if they were running we should
remove them until we're ready to care about consuming this kind of
information.

* Update password test unicode string.
* Add ugettext translation helper function.
* Fix lambda syntax that is not valid in python 3.
* Fix ur raw strings which his not valid in python 3
* Use edx_six.get_gettext instead of ugettext.
* Fix a few other encoding issues.
* Don't use old form of sorted funciton.

This form which uses a 'cmp' method is not available in python 3.
2019-08-16 11:31:36 -04:00
Amit
9c9f38e4e9 INCR-251: Make compatible with Python 3.x without breaking Python 2.7 support --> common/test/acceptance/tests/discussion (#20646) 2019-05-24 14:20:03 -04:00
usama sadiq
2091535b2d LMS MathJax output format Update
MathJax format updated to HTMLorMML instead of SVG
Test files updated in lms.
2019-05-22 11:59:32 +05:00
Michael Youngstrom
a87273ec01 Upgrade axe-core and ignore newly introduced failures 2019-04-17 12:18:32 -04:00
Matthew Piatetsky
9681ca36b8 fix unicode strings in common/ 2019-02-05 10:57:00 -05:00
DawoudSheraz
bd262e000b Update Mathjax version to include a11y 2019-01-17 13:20:07 +05:00
Farhanah Sheets
7c74ecbb23 Fix pep8/pylint violations 2018-12-19 10:26:05 -05:00
Farhanah Sheets
b1a7235511 Update ignore rules for aria-current 2018-12-19 10:26:05 -05:00
Ned Batchelder
2d438d8bb5 Fix 'W605 invalid escape sequence' errors from pycodestyle 2018-11-02 06:06:43 -04:00
Jeremy Bowman
3ff3eee2f2 TE-2689 Remove useless pylint suppressions part 4 2018-08-20 12:54:22 -04:00
Jeremy Bowman
bcaec3c5bb TE-2525 nose.tools removal part 1/2 2018-08-07 08:30:12 -04:00
Jeremy Bowman
4241249119 TE-2524 Stop using nose.plugins 2018-07-30 21:11:05 -04:00
Feanil Patel
b1fda7ebdb Remove flaky tests. 2018-05-09 14:29:46 -04:00
Michael Youngstrom
7820d2509c Increase the number of bok-choy shards 2018-04-06 15:38:14 -04:00
Sanford Student
0bfe9c8d94 remove showbydefault 2018-03-28 15:33:52 -04:00
Stuart Young
53fe34615e Test fixes to prepare for firefox upgrade on jenkins 2018-03-12 15:40:25 -04:00
attiyaishaque
9704146e40 EDUCATOR-2224 Discussion Topic with no posts have message. 2018-02-08 14:47:04 +05:00
Andy Armstrong
b85b7dad72 Disable Bok Choy tests that are failing on Jenkins 2017-10-19 16:15:21 -04:00
Jeremy Bowman
5e2742027b Merge pull request #15712 from edx/jmbowman/PLAT-1676
PLAT-1676 Use pytest for bok-choy tests
2017-08-14 17:03:20 -04:00
Jeremy Bowman
9e3f35db22 PLAT-1676 Use pytest for bok-choy tests 2017-08-14 11:49:39 -04:00
Stuart Young
806bbc13ab remove all occurrences of flaky decorator 2017-08-08 16:23:51 -04:00
Andy Armstrong
c0007a11f3 Add new course search results page
LEARNER-1112
2017-06-13 16:36:32 -04:00
Clinton Blackburn
6ff614800c Updated auto_auth endpoint to always return JSON
Defaulting to a plaintext response makes no sense for an endpoint that is intended to be used by machines for testing. The endpoint now returns JSON only unless a redirect action is triggered.
2017-05-31 23:18:05 -04:00
Clinton Blackburn
74f9858b77 Optimized all imports in common.test.acceptance
- Removed unused imports
- Ran isort to properly order/style imports
2017-05-28 00:59:22 -04:00
attiyaishaque
9188dbdb47 EDUCATOR-283 Old mathjax not load in preview box. 2017-05-11 15:02:17 +05:00
attiyaishaque
25435cfc98 TNL-5515. Fix discussion topic navigation and sorting option. 2017-04-17 17:05:12 +05:00
rabia23
308fd66435 TNL-6740 Fix previously cohorted discussion posts still show cohorting visibility message. 2017-04-12 09:09:12 +00:00
noraiz-anwar
6f447d0b51 Hide Add a post during discussion blackout period 2017-02-14 11:18:12 +05:00
Brian Jacobel
86975faa5f Skip this test until it can be fixed, in TNL-6215 2016-12-21 16:54:41 -05:00
Brian Jacobel
787dac9046 use DiscussionThreadListView for user profile discussion 2016-12-12 11:01:56 -05:00
Brian Jacobel
187783beaf Requested UI changes - borderless, all posts is no longer highlighted
Fix read only support for team discussions

Fix error messages to use "posts" not "threads"

More small UI tweaks, padding and alignment

Add a11y tests for all inline discussion states

Improve discussion error messages
2016-12-12 11:01:56 -05:00
Andy Armstrong
95af18430c Fix inline discussion Bok Choy tests 2016-12-12 11:01:55 -05:00
Brian Jacobel
5dad2afa44 Squashed minor issue fixes in inline discussion view
Make this selector more specific, was getting overrides

Fix Teams implementation of inline discussion

Fix LMS tests

Work on pagination support

Jasmine tests for this feature

Focus works when navigating between list and detail

Fix safe template violations
2016-12-12 11:01:25 -05:00
attiyaishaque
be32d74afe TNL-6017 Receive Updates checkbox saved in discussion forums. 2016-12-01 11:25:44 +05:00
Awais Jibran
92b99c7dc3 Fix discussion user roles 2016-11-10 17:11:52 +05:00
alisan617
e80d9b5792 Refactor discussion tab UI code into parts to be reusable for inline discussions
TNL-5669
2016-11-08 14:17:01 -05:00
Toby Lawrence
2acb4a6cad [PERF-386] Utilize ForumsConfig to enable and disable forums.
This specifically enables/disables the underlying comment service client
used to make calls to the service.  When disabled, this client will now
throw an exception which can be propagated upwards so that callers can
make the right decision about how to notify users of the error, or
handle retry, etc etc.
2016-11-03 10:20:19 -04:00
cahrens
827f91a9f9 Remove unnecessary ignores in a11y tests.
Also update JIRA tickets.
2016-10-25 13:38:55 -04:00
Toby Lawrence
6704e17afd [TNL-5632] Optimize the single_thread view.
Firstly, we're now explicitly instructing the comments service to not
return thread responses/comments if the request isn't AJAX.  So, if you
load the URL for a single discussion thread in your browser, this would
be a non-AJAX call and we'll avoid loading the responses for the entire
thread behind-the-scenes.  Big win here for large threads.

Next, we removed a redundant "get threads" call which was also happening
behind-the-scenes.  This call was redundant as the front-end JS also
grabs the thread list when a topic is chosen, so we were making an
extranenous call for no benefit.  Poof, gone!

Finally, we added some caching of database queries that are required to
drive a lot of the permissions/cohorts machinery around discussion.
This will have a minimal effect but introduced a cleaner way to apply
general memoization at the per-request level which will let us further
cache things as we identify them as issues.
2016-10-18 13:11:30 -04:00
alisan617
d5635cf1ba New inline discussion home view UI
TNL-4756
2016-10-14 10:54:50 -04:00
Noraiz Anwar
34ab38d729 Fix mathjax rendering
TNL-5451
2016-10-06 12:30:46 +05:00
alisan617
0ffeb4639b Make the left sidebar in Discussion page accessible
TNL-5169
2016-09-22 15:28:29 -04:00