test: fix image integration test (#7323)

This commit is contained in:
Richard Shiue 2025-02-05 19:45:21 +08:00 committed by GitHub
parent 6823fe5d24
commit 43e64d8219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -458,7 +458,7 @@ void main() {
});
testWidgets('paste the image url', (tester) async {
const plainText = 'https://appflowy.io/1.jpg';
const plainText = 'http://example.com/1.jpg';
final image = await rootBundle.load('assets/test/images/sample.jpeg');
final bytes = image.buffer.asUint8List();
await tester.pasteContent(plainText: plainText, image: ('jpeg', bytes),