swift-responsive-textfield icon indicating copy to clipboard operation
swift-responsive-textfield copied to clipboard

Add localization key to placeholder

Open Muhammadbarznji opened this issue 1 year ago • 2 comments
trafficstars

Overview

This PR adds additional snapshot tests for the ResponsiveTextField component and includes tests for Arabic localization. These changes address issue #11 and enhance our test coverage by ensuring the component behaves correctly under various configurations and locales.

Changes

Tests Added

  • testTextFieldInArabic: Checks the text field in the Arabic locale, both empty and with text.
  • testTextFieldWithDifferentConfigurations: Checks the text field with different configurations (empty, no autocorrect, no autocapitalization).

Related Issue

This PR addresses issue #11.

Screenshots

https://github.com/user-attachments/assets/d55bf455-78ad-4dfe-b7d1-862cfa7774be

Checklist

  • [x] Added snapshot tests for ResponsiveTextField.
  • [x] Included Arabic localization tests.

Please review the changes and provide feedback. Thank you!

Muhammadbarznji avatar Jul 25 '24 21:07 Muhammadbarznji

Hi @lukeredpath , I’ve added a new feature to the swift-responsive-textfield package, but I’m running into an issue with the GitHub CI action related to Code Climate. The error message is: The process '/Users/runner/work/swift-responsive-textfield/swift-responsive-textfield/cc-reporter' failed with exit code 255 Any ideas on how to resolve this?

Muhammadbarznji avatar Jul 26 '24 14:07 Muhammadbarznji

@Muhammadbarznji thanks for the PR - I will take a look. Don't worry about the CodeClimate step.

lukeredpath avatar Jul 26 '24 14:07 lukeredpath