I usually see people explicitly use the equals matcher instead of using it implicitly, like:

expect(alert.text, equals('button clicked'))