Fix FunctionalJavascript test

Created on 16 July 2025, 7 days ago

Problem/Motivation

In DeclarationFormTest::testOralDeclarationRecordedByStaff(), move the return statement down to just before @todo Fix when added code for cancellation. It needs to be inside if (TRUE) { to avoid a bunch of warnings for unreachable code.

Fix @todo Use ajax to add evidence. so that the submit form succeeds. The code might start something like

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

Ensure that the following code // There should now be a stored declaration. passes.

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

Comments & Activities

Production build 0.71.5 2024