Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

WIP Add selenium test for django admin page #50

wants to merge 6 commits into from

Conversation

meshy
Copy link
Collaborator

@meshy meshy commented Oct 27, 2018

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:

@meshy meshy changed the title Add selenium test for django admin page WIP Add selenium test for django admin page Oct 27, 2018
@codecov-io
Copy link

codecov-io commented Oct 27, 2018

Codecov Report

Merging #50 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e5c7ec...f0d704d. Read the comment docs.

@meshy meshy force-pushed the behave branch 2 times, most recently from 953de5e to 54f9b5d Compare October 27, 2018 12:08
@given(u'the following items')
def set_up_items(context):
Item.objects.bulk_create([
Item(pk=row['pk'], sort_order=i)
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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.

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.

2 participants