Created on 14 July 2025, about 2 months ago

Problem/Motivation

Fix warnings and some @todo

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom adamps

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

  • !13Tidy up
    Merged

    πŸ‡¬πŸ‡§United Kingdom adamps
    updated about 2 months ago

Comments & Activities

  • Issue created by @adamps
  • Merge request !13Issue #3535869: Tidy up β†’ (Merged) created by adamps
  • πŸ‡¬πŸ‡§United Kingdom adamps

    Now have a triple green on the test resultsπŸ˜ƒ. OK with you?

    I have never installed the necessary for infrastructure for FunctionalJavascript tests. Probably we need just one test, so it's not really efficient for me to learn it. Would you be willing to do it yourself please?

    In DeclarationFormTest::testOralDeclarationRecordedByStaff(), the return statement should be down to just before @todo Fix when added code for cancellation.. It just needs some ajax to add evidence, which might start something like

    $this->assertSession()->waitForElementVisible('named', ['button', 'Add new Gift Aid evidence'])->press();

  • πŸ‡¬πŸ‡§United Kingdom adamps
  • πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

    I have never installed the necessary for infrastructure for FunctionalJavascript tests. Probably we need just one test, so it's not really efficient for me to learn it. Would you be willing to do it yourself please?

    In DeclarationFormTest::testOralDeclarationRecordedByStaff(), the return statement should be down to just before @todo Fix when added code for cancellation.. It just needs some ajax to add evidence, which might start something like

    $this->assertSession()->waitForElementVisible('named', ['button', 'Add new Gift Aid evidence'])->press();

    Maybe best to make this a seperate issue? I can do it.

  • πŸ‡¬πŸ‡§United Kingdom adamps

    I ended up deleting the last two items:

    4) Fix deprecation notices in test results (although some come from Commerce tests?)

    CheckoutTest has deprecations, but AFAICS they come from Commerce.

    Remaining self deprecation notices (2)
    
    2x: Renderer::renderPlain() is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Instead, you should use ::renderInIsolation(). See https://www.drupal.org/node/3407994
        2x in CheckoutTest::testCollectDeclaration from Drupal\Tests\gift_aid_commerce\Functional
    
    Other deprecation notices (12)
    
      12x: Using the 'timestamp' formatter plugin  without the 'tooltip' and 'time_diff' settings is deprecated in drupal:10.1.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/2993639
        12x in CheckoutTest::testCollectDeclaration from Drupal\Tests\gift_aid_commerce\Functional
    

    5) Move the menus one level down, e.g. put Gift Aid under Services? This is the normal level, and it means that the various admin pages for the module are all visible as tabs.

    Things have changed since I wrote that originally. Each of the admin pages now has its own tabs, so it no longer applies.

  • πŸ‡¬πŸ‡§United Kingdom adamps

    Maybe best to make this a seperate issue? I can do it.

    Thanks I raised πŸ“Œ Fix FunctionalJavascript test Active .

  • Pipeline finished with Skipped
    about 2 months ago
    #549133
  • πŸ‡¬πŸ‡§United Kingdom adamps
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024