testcentricity_mobile 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +53 -42
- data/lib/testcentricity_mobile/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b1da49ff47653a52199d5b9f72191dd4c23a109325daee033af966272f5086c
|
4
|
+
data.tar.gz: d76708fc1c3384a5b7d98f7212212a3a2892fe112f50ac24343b58e763643ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2270f5e563176336d880a745c89a698bef717a44185fbe042066b2d463fa265dd6f567465049868eb9d2489062909716b2dffe41a7aff44c312142e3cd53c3b4
|
7
|
+
data.tar.gz: 9069b335fe5928aa03f3ed17e3aa803dd2b65dec9e0756dfa870bccf7ba090f67213581580119ca050a666666f74f1c32a5e22d11b553dd9e01a5e7cda2075a9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -310,9 +310,11 @@ Refer to the [Speeding Up Tests With Deep Links](https://appiumpro.com/editions/
|
|
310
310
|
A `ScreenSection` is a collection of **UI Elements** that may appear in multiple locations on a screen, or on multiple
|
311
311
|
screens in an app. It is a collection of **UI Elements** that represent a conceptual area of functionality, like a menu,
|
312
312
|
a navigation bar, or a search capability. **UI Elements** and functional behavior are confined to the scope of a `ScreenSection`
|
313
|
-
object.
|
313
|
+
object. A `ScreenSection` may contain other `ScreenSection` objects.
|
314
314
|
|
315
|
-
|
315
|
+
Below is an example of a footer navigation bar feature that is common to multiple screen -
|
316
|
+
|
317
|
+
 
|
316
318
|
|
317
319
|
|
318
320
|
### Defining a ScreenSection
|
@@ -687,38 +689,44 @@ The `verify_ui_states` method also supports I18n string translations using prope
|
|
687
689
|
:translate_capitalize String
|
688
690
|
:translate_titlecase String
|
689
691
|
|
690
|
-
The example below depicts the usage of the `verify_ui_states` method to verify that the captions for menu items
|
691
|
-
translated.
|
692
|
+
The example below depicts the usage of the `verify_ui_states` method to verify that the captions for navigation menu items
|
693
|
+
are correctly translated.
|
694
|
+
|
695
|
+

|
692
696
|
```ruby
|
693
697
|
def verify_menu
|
694
698
|
ui = {
|
695
|
-
|
699
|
+
menu_title => {
|
700
|
+
visible: true,
|
701
|
+
caption: { translate: 'NavMenu.title' }
|
702
|
+
},
|
703
|
+
recipes_item => {
|
696
704
|
visible: true,
|
697
|
-
caption: { translate: '
|
705
|
+
caption: { translate: 'NavMenu.recipes' }
|
698
706
|
},
|
699
|
-
|
707
|
+
browser_item => {
|
700
708
|
visible: true,
|
701
|
-
caption: { translate: '
|
709
|
+
caption: { translate: 'NavMenu.browser' }
|
702
710
|
},
|
703
|
-
|
711
|
+
groceries_item => {
|
704
712
|
visible: true,
|
705
|
-
caption: { translate: '
|
713
|
+
caption: { translate: 'NavMenu.groceries' }
|
706
714
|
},
|
707
|
-
|
715
|
+
pantry_item => {
|
708
716
|
visible: true,
|
709
|
-
caption: { translate: '
|
717
|
+
caption: { translate: 'NavMenu.pantry' }
|
710
718
|
},
|
711
|
-
|
719
|
+
meals_item => {
|
712
720
|
visible: true,
|
713
|
-
caption: { translate: '
|
721
|
+
caption: { translate: 'NavMenu.meals' }
|
714
722
|
},
|
715
|
-
|
723
|
+
menus_item => {
|
716
724
|
visible: true,
|
717
|
-
caption: { translate: '
|
725
|
+
caption: { translate: 'NavMenu.menus' }
|
718
726
|
},
|
719
|
-
|
727
|
+
settings_item => {
|
720
728
|
visible: true,
|
721
|
-
caption: { translate: '
|
729
|
+
caption: { translate: 'NavMenu.settings' }
|
722
730
|
}
|
723
731
|
}
|
724
732
|
verify_ui_states(ui)
|
@@ -730,38 +738,41 @@ menu example above, the translated strings for English, Spanish, and French are
|
|
730
738
|
**English** - `en.yml`
|
731
739
|
```yaml
|
732
740
|
en:
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
+
NavMenu:
|
742
|
+
title: 'Main Menu'
|
743
|
+
recipes: 'Recipes'
|
744
|
+
browser: 'Browser'
|
745
|
+
groceries: 'Groceries'
|
746
|
+
pantry: 'Pantry'
|
747
|
+
meals: 'Meals'
|
748
|
+
menus: 'Menus'
|
749
|
+
settings: 'Settings'
|
741
750
|
```
|
742
751
|
**Spanish** - `es.yml`
|
743
752
|
```yaml
|
744
753
|
es:
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
754
|
+
NavMenu:
|
755
|
+
title: 'Menú principal'
|
756
|
+
recipes: 'Recetas'
|
757
|
+
browser: 'Navegador'
|
758
|
+
groceries: 'Compra'
|
759
|
+
pantry: 'Despensa'
|
760
|
+
meals: 'Comidas'
|
761
|
+
menus: 'Menús'
|
762
|
+
settings: 'Ajustes'
|
753
763
|
```
|
754
764
|
**French** - `fr.yml`
|
755
765
|
```yaml
|
756
766
|
fr:
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
767
|
+
NavMenu:
|
768
|
+
title: 'Menu principal'
|
769
|
+
recipes: 'Recettes'
|
770
|
+
browser: 'Navigateur'
|
771
|
+
groceries: 'Courses'
|
772
|
+
pantry: 'Provisions'
|
773
|
+
meals: 'Repas'
|
774
|
+
menus: 'Menus'
|
775
|
+
settings: 'Réglades'
|
765
776
|
```
|
766
777
|
|
767
778
|
Each supported language/locale combination has a corresponding `.yml` file. I18n `.yml` file naming convention uses
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_mobile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Mrozinski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 4.
|
215
|
+
version: 4.19.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - '='
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 4.
|
222
|
+
version: 4.19.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: test-unit
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|