GLM 5.4 vision for UI testing: turn a screenshot into a verifiable bug report

A concrete screenshot task shows how to separate visible UI defects, implementation hypotheses and acceptance criteria using GLM 5.4.

Give GLM 5.4 a screenshot of a checkout page at 320 pixels wide. Suppose the last digits of the total are cut off at the right edge. A useful issue report identifies the affected text and gives a reviewer a way to check the fix. A confident claim about the offending CSS selector goes beyond what a screenshot alone can establish. Z.ai model guide · GLM 5.4 routes and prices

A prompt you can reuse

Read the attached checkout screenshot. Identify the element whose text is clipped. Describe only the visible symptom. Write one acceptance criterion for the same viewport. List any source files or additional screenshots you would need to determine the cause.

A reference answer for this fictional case is “The order total extends past the right edge. At 320 pixels wide, all digits and the currency symbol should be visible.” Accept different wording if it names the same element and stays within the evidence. A screenshot of a healthy layout is a valuable second input: a model that reports clipping on both screens is generating issues you cannot trust.

Connect the finding to a code change

Supply the relevant component and stylesheet on a second turn. Ask for the smallest patch and render the changed component at the original width. Verify that the total is visible with a long currency value as well as a short one. Save the original image, the generated issue and the rendered result together. That makes the next evaluation about a visible outcome instead of the persuasiveness of a proposed fix.

To compare with a text-only route, give both models the same DOM excerpt and measurements. Score that as a separate task from interpreting the original pixels. GLM API setup · Amazon Ergo vs GLM 5.4