Skip to content

Commit

Permalink
fix: e2e issues
Browse files Browse the repository at this point in the history
  • Loading branch information
endalkh committed Jun 20, 2024
1 parent 1d41321 commit 6629286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/product_management/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ class BountyClaimView(LoginRequiredMixin, View):

def post(self, request, pk, *args, **kwargs):
form = forms.BountyClaimForm(request.POST)
print("=======================:", request.POST)

form.is_valid()
print("=======================:", request.POST)
Expand Down
5 changes: 4 additions & 1 deletion e2e/tests/test_claim_bounty.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ def test_claim_bounty(live_server, page_context, setup_bounty):

future_date = datetime.now() + timedelta(days=10)
day = future_date.strftime("%d")
page_context.wait_for_timeout(500)
month = future_date.strftime("%m")
page_context.wait_for_timeout(500)
year = future_date.strftime("%Y")
page_context.wait_for_timeout(500)

print("========================:", datetime.now())
print("========================:", day, month, year)

# Clear the date input fields before typing
page.expected_submission_date.clear()
page.expected_submission_date.type(day)
page.expected_submission_date.type(month)
page.expected_submission_date.type(year)
Expand Down

0 comments on commit 6629286

Please sign in to comment.