Set Appliance State:

Isolate Mains Power to appliance as per TOPs P4
Set Multimeter to Resistance Set meter to measure resistance
Disconnect inline connector to flow switch

Measurement:

Measure the resistance between pins 1 and 2 on connector X8
to the corresponding pins on the flow switch connector (see note)
Expect continuity / zero resistance on each test.
Also visually inspect the condition of the harness.