Skip to content

[tests] Import django_loci selenium tests, fix failing readonly tests #1009

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

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

Conversation

DragnEmperor
Copy link

@DragnEmperor DragnEmperor commented Apr 13, 2025

Imported selenium test cases for device admin from django_loci. The readonly tests were failing due to user not belonging to the same organization of instances.

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.

Description of Changes

Imported selenium test cases for device admin from django_loci.
The readonly tests were failing due to user not belonging to the same organization of instances.

Imported selenium test cases for device admin from `django_loci`.
The readonly tests were failing due to user not belonging to the
same organization of instances.

Signed-off-by: DragnEmperor <[email protected]>
Copy link
Member

@codesankalp codesankalp left a comment

Choose a reason for hiding this comment

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

@DragnEmperor I approved the tests workflow, but they’re still failing. If the failures are due to a dependency on your django-loci branch, please add a tarball link to your branch in requirements.txt to ensure the tests pass.

Once the django-loci PR is merged, you can revert the requirements.txt change in this PR.

The geo selenium tests were failing overall due to
organization not being created for the device. Added
organization mixin to solve this.
Also added a temporary link to `django_loci` tarball
in requirements.txt to tackle failing builds.

Signed-off-by: DragnEmperor <[email protected]>
@DragnEmperor DragnEmperor force-pushed the tests/failing-readonly-tests branch from dadf6c7 to 643525a Compare April 16, 2025 16:29
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