-
Notifications
You must be signed in to change notification settings - Fork 19
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
WIP Add selenium test for django admin page #50
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
=======================================
Coverage 86.09% 86.09%
=======================================
Files 4 4
Lines 151 151
=======================================
Hits 130 130
Misses 21 21 Continue to review full report at Codecov.
|
953de5e
to
54f9b5d
Compare
@given(u'the following items') | ||
def set_up_items(context): | ||
Item.objects.bulk_create([ | ||
Item(pk=row['pk'], sort_order=i) |
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 needs to be i+1
, to avoid populating the item with a 0
(which is not a valid value).
@@ -0,0 +1,11 @@ | |||
from .browser import Browser | |||
from .pages import ItemListPage |
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.
Tests fail because this isn't an acceptable relative import.
This adds an initial selenium test for the django admin code. It's part of #30 (add selenium tests), and paves the way towards addressing #32 (remove custom admin template). Hopefully, it'll also make #15 (disable drag-and-drop with other orderings) easier to tackle, and #29 (django-grapelli integration) easier to verify.
This builds on the work in PR #49, so once that's merged, I'll rebase this to make it easier to review
TODO: