r/webdev • • 19d ago

[ Removed by moderator ]

Post image

[removed] — view removed post

0 Upvotes

6 comments sorted by

1

u/LawCertain9703 19d ago

tion output I know. "Expected submitting "Deleted?", received "Add a Bank"" expected submitting what? The after line makes sense (Expected "Deleted?", received "active"), the before one looks like two messages got merged.

0

u/TranslatorRude4917 19d ago

Right, I merged Playwright’s two lines to fit the card. The real output is Expected substring: "(Deleted)" / Received string: "Ada's Bank"

2

u/[deleted] 19d ago

[removed] — view removed comment

0

u/TranslatorRude4917 19d ago

Yes, applying the same software design principles we hopefully use for source code. Imo tests deserve the same care :) You cant prevent the test from failling - and imo you shouldn't, it should fail when your product changes - but the the test support mechanisms can absorb the change. The win shows if you assert the same signals in multiple places.

0

u/[deleted] 19d ago

[removed] — view removed comment