mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
Narrow IsHandled, label-scope, UI-handler, checkpoint, and bulk-operation guidance to evidence-backed false-positive boundaries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
28 lines
745 B
AL
28 lines
745 B
AL
codeunit 50400 "Test UI Handler Capture Good"
|
|
{
|
|
Subtype = Test;
|
|
|
|
[Test]
|
|
[HandlerFunctions('CustomerCardHandler')]
|
|
procedure CustomerCardShowsSelectedCustomer()
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.Get('10000');
|
|
CapturedCustomerNo := '';
|
|
|
|
Page.RunModal(Page::"Customer Card", Customer);
|
|
|
|
Assert.AreEqual(Customer."No.", CapturedCustomerNo, 'The customer card opened for the wrong customer.');
|
|
end;
|
|
|
|
[ModalPageHandler]
|
|
procedure CustomerCardHandler(var CustomerCard: TestPage "Customer Card")
|
|
begin
|
|
CapturedCustomerNo := CustomerCard."No.".Value();
|
|
end;
|
|
|
|
var
|
|
Assert: Codeunit "Library Assert";
|
|
CapturedCustomerNo: Code[20];
|
|
}
|