docs.cwtch.im/blog/2023-02-17-cwtch-testing-ii.md

3.1 KiB

title description slug tags image hide_table_of_contents toc_max_heading_level authors
Notes on Cwtch UI Testing (II) In this development log we provide more updates on automated UI integration testing! cwtch-testing-ii
cwtch
cwtch-stable
support
testing
/img/devlog7_small.png false 4
name title image_url
Sarah Jamie Lewis Executive Director, Open Privacy Research Society /img/sarah.jpg

In this development log, we investigate some text-based UI bugs encountered by Fuzzbot, add more automated UI tests to the pipeline, and announce a new release of the Cwtchbot library.

Constraining Cwtch UI Fields

Fuzzbot identified a few bugs relating to UI layout and text clipping. Certain strings would violate the bounds of their containers and overlap with other UI elements. While this doesn't pose a safety issue, it is unsightly.

Screenshot demonstrating how certain strings would violate the bounds of their containers.

These cases were fixed by parenting impacted elements in a Container with clip: hardEdge and decoration:BoxDecoration() (note that both of these are required as Container widgets in Flutter cannot set clipping logic without an associated decoration).

Now these clipped strings are tightly constrained to their container bounds.

These fixes are available in the latest Cwtch Nightly, and will be officially released in Cwtch 1.11.

More Automated UI Tests

We have added two new sets of automated UI tests to our pipeline:

  • 02: Global Settings - these tests check that certain global settings like languages, theme, unknown contacts blocking, and streamer mode work as expected. (PR: 628)
  • 04: Profile Management - these tests check that creating, unlocking, and deleting a profile work as expected. (PR: 632)

New Release of Cwtchbot

Cwtchbot has been updated to use the latest Cwtch 0.18.10 API.

Help us go further!

We couldn't do what we do without all the wonderful community support we get, from one-off donations to recurring support via Patreon.

If you want to see us move faster on some of these goals and are in a position to, please donate. If you happen to be at a company that wants to do more for the community and this aligns, please consider donating or sponsoring a developer.

Donations of $5 or more can opt to receive stickers as a thank-you gift!

For more information about donating to Open Privacy and claiming a thank you gift please visit the Open Privacy Donate page.

A Photo of Cwtch Stickers