Skip to content

Commit

Permalink
Merge branch 'develop' into rdi_program_population_filter_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-mk authored Dec 11, 2024
2 parents a733add + 20edae8 commit 758c7cf
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/helpers/docker-compose.selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
backend:
volumes:
- ../../tests/test-coverage:/code/test-coverage
- ../../tests/report/:/code/tests/selenium/output_data/report/
- ../../tests/report/:/code/tests/selenium/output_data/
- type: volume
source: backend-web-app
target: /code/src/hct_mis_api/apps/web
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ jobs:
continue-on-error: true
with:
name: report
path: ./tests/selenium/output_data/
path: ./tests/report/
retention-days: 5
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
1 change: 1 addition & 0 deletions src/hct_mis_api/apps/payment/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def get_queryset(self) -> QuerySet:
program_cycle__program__in=program_ids,
)

# TODO: e2e failed probably because of cache here
@etag_decorator(PaymentPlanKeyConstructor)
@cache_response(timeout=config.REST_API_TTL, key_func=PaymentPlanKeyConstructor())
def list(self, request: Request, *args: Any, **kwargs: Any) -> Response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def test_grievance_dashboard_happy_path(
pageGrievanceDashboard: GrievanceDashboard,
pageGrievanceTickets: GrievanceTickets,
pageGrievanceDetailsPage: GrievanceDetailsPage,
download_path: str,
) -> None:
pageGrievanceTickets.getNavGrievance().click()
pageGrievanceDashboard.getNavGrievanceDashboard().click()
Expand Down
18 changes: 11 additions & 7 deletions tests/selenium/managerial_console/test_managerial_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,29 +120,33 @@ def test_managerial_console_smoke_test(
pageManagerialConsole.getReleaseButton().click()

program = Program.objects.filter(name="Test Programm").first()
program_cycle = ProgramCycleFactory(program=program)
program_cycle = program.cycles.first()
ba = BusinessArea.objects.filter(slug="afghanistan").first()
user = User.objects.first()
PaymentPlanFactory(
program_cycle=program_cycle,
status=PaymentPlan.Status.IN_APPROVAL,
business_area=BusinessArea.objects.filter(slug="afghanistan").first(),
business_area=ba,
created_by=user,
)
PaymentPlanFactory(
program_cycle=program_cycle,
status=PaymentPlan.Status.IN_AUTHORIZATION,
business_area=BusinessArea.objects.filter(slug="afghanistan").first(),
business_area=ba,
created_by=user,
)
PaymentPlanFactory(
program_cycle=program_cycle,
status=PaymentPlan.Status.IN_REVIEW,
business_area=BusinessArea.objects.filter(slug="afghanistan").first(),
business_area=ba,
created_by=user,
)
PaymentPlanFactory(
program_cycle=program_cycle,
status=PaymentPlan.Status.ACCEPTED,
business_area=BusinessArea.objects.filter(slug="afghanistan").first(),
business_area=ba,
created_by=user,
)
program.save()
program.refresh_from_db()
pageManagerialConsole.getMenuUserProfile().click()
pageManagerialConsole.getMenuItemClearCache().click()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def test_payment_verification_create_verification_plan_random_sampling_manual(
assert "0" in pagePaymentVerificationDetails.getLabelSampleSize().text
assert "1" in pagePaymentVerificationDetails.getLabelNumberOfVerificationPlans().text

@pytest.mark.xfail(reason="UNSTABLE")
@pytest.mark.xfail(reason="Problem with deadlock during test - 202318")
def test_payment_verification_records(
self,
active_program: Program,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def create_flexible_attribute(

@pytest.mark.usefixtures("login")
class TestPeriodicDataTemplates:
@pytest.mark.xfail(reason="UNSTABLE")
def test_periodic_data_template_export_and_download(
self,
clear_downloaded_files: None,
program: Program,
string_attribute: FlexibleAttribute,
pageIndividuals: Individuals,
Expand Down
2 changes: 1 addition & 1 deletion tests/selenium/targeting/test_targeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def test_targeting_and_labels(
assert "Copy TP" in pageTargeting.chooseTargetPopulations(0).text
pageTargeting.getColumnCreatedBy().click()
pageTargeting.disappearLoadingRows()
assert "Copy TP" in pageTargeting.chooseTargetPopulations(0).text
pageTargeting.wait_for_text("Copy TP", pageTargeting.rows)

def test_targeting_parametrized_rules_filters(
self,
Expand Down

0 comments on commit 758c7cf

Please sign in to comment.