testcentricity_web 4.1.9 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +96 -1
  3. data/README.md +88 -48
  4. data/lib/testcentricity_web/browser_helper.rb +2 -1
  5. data/lib/testcentricity_web/data_objects/environment.rb +0 -1
  6. data/lib/testcentricity_web/version.rb +1 -1
  7. data/lib/testcentricity_web/web_core/page_objects_helper.rb +40 -3
  8. data/lib/testcentricity_web/web_core/webdriver_helper.rb +89 -80
  9. data/lib/testcentricity_web/web_elements/media.rb +108 -0
  10. data/lib/testcentricity_web/web_elements/textfield.rb +28 -0
  11. data/lib/testcentricity_web/web_elements/ui_elements_helper.rb +39 -1
  12. metadata +37 -181
  13. data/.gitignore +0 -39
  14. data/.idea/.name +0 -1
  15. data/.idea/encodings.xml +0 -6
  16. data/.idea/misc.xml +0 -4
  17. data/.idea/modules.xml +0 -8
  18. data/.idea/vcs.xml +0 -7
  19. data/.rspec +0 -4
  20. data/.rubocop.yml +0 -38
  21. data/.ruby-version +0 -1
  22. data/.simplecov +0 -9
  23. data/CODE_OF_CONDUCT.md +0 -13
  24. data/Gemfile +0 -6
  25. data/Rakefile +0 -115
  26. data/config/cucumber.yml +0 -171
  27. data/config/locales/en-US.yml +0 -56
  28. data/config/test_data/LOCAL_data.json +0 -15
  29. data/config/test_data/LOCAL_data.xls +0 -0
  30. data/config/test_data/LOCAL_data.yml +0 -11
  31. data/config/test_data/data.json +0 -25
  32. data/config/test_data/data.xls +0 -0
  33. data/config/test_data/data.yml +0 -20
  34. data/docker-compose.yml +0 -48
  35. data/features/basic_form_page_css.feature +0 -54
  36. data/features/basic_form_page_xpath.feature +0 -26
  37. data/features/custom_controls.feature +0 -29
  38. data/features/media_players.feature +0 -67
  39. data/features/step_definitions/generic_steps.rb.rb +0 -124
  40. data/features/step_definitions/media_steps.rb +0 -30
  41. data/features/support/data/form_data.rb +0 -43
  42. data/features/support/env.rb +0 -51
  43. data/features/support/hooks.rb +0 -270
  44. data/features/support/pages/base_test_page.rb +0 -22
  45. data/features/support/pages/basic_css_form_page.rb +0 -53
  46. data/features/support/pages/basic_form_page.rb +0 -429
  47. data/features/support/pages/basic_xpath_form_page.rb +0 -54
  48. data/features/support/pages/custom_controls_page.rb +0 -263
  49. data/features/support/pages/indexed_sections_page.rb +0 -57
  50. data/features/support/pages/media_test_page.rb +0 -207
  51. data/features/support/sections/header_nav.rb +0 -48
  52. data/features/support/sections/product_card.rb +0 -39
  53. data/features/support/world_data.rb +0 -12
  54. data/features/support/world_pages.rb +0 -18
  55. data/reports/.keep +0 -1
  56. data/spec/fixtures/page_object.rb +0 -22
  57. data/spec/fixtures/section_object.rb +0 -21
  58. data/spec/spec_helper.rb +0 -31
  59. data/spec/testcentricity_web/browser_spec.rb +0 -41
  60. data/spec/testcentricity_web/elements/audio_spec.rb +0 -68
  61. data/spec/testcentricity_web/elements/button_spec.rb +0 -18
  62. data/spec/testcentricity_web/elements/checkbox_spec.rb +0 -33
  63. data/spec/testcentricity_web/elements/file_field_spec.rb +0 -13
  64. data/spec/testcentricity_web/elements/image_spec.rb +0 -33
  65. data/spec/testcentricity_web/elements/label_spec.rb +0 -18
  66. data/spec/testcentricity_web/elements/link_spec.rb +0 -23
  67. data/spec/testcentricity_web/elements/list_spec.rb +0 -13
  68. data/spec/testcentricity_web/elements/radio_spec.rb +0 -28
  69. data/spec/testcentricity_web/elements/ui_element_spec.rb +0 -125
  70. data/spec/testcentricity_web/elements/video_spec.rb +0 -68
  71. data/spec/testcentricity_web/helper_specs/object_helpers_spec.rb +0 -39
  72. data/spec/testcentricity_web/helper_specs/string_helpers_spec.rb +0 -49
  73. data/spec/testcentricity_web/page_object_spec.rb +0 -90
  74. data/spec/testcentricity_web/section_object_spec.rb +0 -72
  75. data/spec/testcentricity_web/version_spec.rb +0 -7
  76. data/spec/testcentricity_web/webdriver_connect/grid_webdriver_spec.rb +0 -72
  77. data/spec/testcentricity_web/webdriver_connect/local_webdriver_spec.rb +0 -86
  78. data/spec/testcentricity_web/webdriver_connect/mobile_webdriver_spec.rb +0 -65
  79. data/test_site/basic_test_page.html +0 -290
  80. data/test_site/chosen-sprite.png +0 -0
  81. data/test_site/chosen-sprite@2x.png +0 -0
  82. data/test_site/chosen.css +0 -496
  83. data/test_site/chosen.jquery.js +0 -1359
  84. data/test_site/chosen.jquery.min.js +0 -3
  85. data/test_site/chosen.min.css +0 -11
  86. data/test_site/chosen.proto.js +0 -1399
  87. data/test_site/chosen.proto.min.js +0 -3
  88. data/test_site/composer.json +0 -36
  89. data/test_site/custom_controls_page.html +0 -629
  90. data/test_site/docsupport/chosen.png +0 -0
  91. data/test_site/docsupport/init.js +0 -11
  92. data/test_site/docsupport/init.proto.js +0 -16
  93. data/test_site/docsupport/jquery-1.12.4.min.js +0 -5
  94. data/test_site/docsupport/jquery-3.2.1.min.js +0 -4
  95. data/test_site/docsupport/oss-credit.png +0 -0
  96. data/test_site/docsupport/prism.css +0 -108
  97. data/test_site/docsupport/prism.js +0 -9
  98. data/test_site/docsupport/prototype-1.7.0.0.js +0 -6082
  99. data/test_site/docsupport/style.css +0 -219
  100. data/test_site/images/Blouse_Black.jpg +0 -0
  101. data/test_site/images/Granny.jpg +0 -0
  102. data/test_site/images/Printed_Dress.jpg +0 -0
  103. data/test_site/images/T-shirt.jpg +0 -0
  104. data/test_site/images/Wilder.jpg +0 -0
  105. data/test_site/images/You_Betcha.jpg +0 -0
  106. data/test_site/images/jeans3.jpg +0 -0
  107. data/test_site/indexed_sections_page.html +0 -215
  108. data/test_site/media/MIB2-subtitles-pt-BR.vtt +0 -49
  109. data/test_site/media/MIB2.mp4 +0 -0
  110. data/test_site/media/MP4_small.mp4 +0 -0
  111. data/test_site/media/MPS_sample.mp3 +0 -0
  112. data/test_site/media/bbc_scotland_report.mp3 +0 -0
  113. data/test_site/media/count_and_bars.mp4 +0 -0
  114. data/test_site/media_page.html +0 -86
  115. data/testcentricity_web.gemspec +0 -57
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.9
4
+ version: 4.3.0
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: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: appium_capybara
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: cucumber
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 8.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 8.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cuke_modeler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: appium_capybara
84
+ name: httparty
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: httparty
112
+ name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -126,30 +126,30 @@ dependencies:
126
126
  name: require_all
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 1.5.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 1.5.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '3.10'
145
+ version: 3.11.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '3.10'
152
+ version: 3.11.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -212,7 +212,7 @@ dependencies:
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
- version: '3.1'
215
+ version: 3.37.1
216
216
  - - "<"
217
217
  - !ruby/object:Gem::Version
218
218
  version: '4'
@@ -222,7 +222,7 @@ dependencies:
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
- version: '3.1'
225
+ version: 3.37.1
226
226
  - - "<"
227
227
  - !ruby/object:Gem::Version
228
228
  version: '4'
@@ -302,7 +302,7 @@ dependencies:
302
302
  requirements:
303
303
  - - ">="
304
304
  - !ruby/object:Gem::Version
305
- version: '4.0'
305
+ version: 4.3.0
306
306
  - - "<"
307
307
  - !ruby/object:Gem::Version
308
308
  version: '5'
@@ -312,7 +312,7 @@ dependencies:
312
312
  requirements:
313
313
  - - ">="
314
314
  - !ruby/object:Gem::Version
315
- version: '4.0'
315
+ version: 4.3.0
316
316
  - - "<"
317
317
  - !ruby/object:Gem::Version
318
318
  version: '5'
@@ -345,33 +345,33 @@ dependencies:
345
345
  - !ruby/object:Gem::Version
346
346
  version: '0'
347
347
  - !ruby/object:Gem::Dependency
348
- name: webdrivers
348
+ name: virtus
349
349
  requirement: !ruby/object:Gem::Requirement
350
350
  requirements:
351
- - - "~>"
351
+ - - ">="
352
352
  - !ruby/object:Gem::Version
353
- version: '5.0'
353
+ version: '0'
354
354
  type: :runtime
355
355
  prerelease: false
356
356
  version_requirements: !ruby/object:Gem::Requirement
357
357
  requirements:
358
- - - "~>"
358
+ - - ">="
359
359
  - !ruby/object:Gem::Version
360
- version: '5.0'
360
+ version: '0'
361
361
  - !ruby/object:Gem::Dependency
362
- name: virtus
362
+ name: webdrivers
363
363
  requirement: !ruby/object:Gem::Requirement
364
364
  requirements:
365
- - - ">="
365
+ - - "~>"
366
366
  - !ruby/object:Gem::Version
367
- version: '0'
367
+ version: '5.0'
368
368
  type: :runtime
369
369
  prerelease: false
370
370
  version_requirements: !ruby/object:Gem::Requirement
371
371
  requirements:
372
- - - ">="
372
+ - - "~>"
373
373
  - !ruby/object:Gem::Version
374
- version: '0'
374
+ version: '5.0'
375
375
  description: |2-
376
376
 
377
377
  The TestCentricity™ Web core framework for desktop and mobile web browser-based app testing implements a Page Object
@@ -387,52 +387,10 @@ executables: []
387
387
  extensions: []
388
388
  extra_rdoc_files: []
389
389
  files:
390
- - ".gitignore"
391
- - ".idea/.name"
392
- - ".idea/encodings.xml"
393
- - ".idea/misc.xml"
394
- - ".idea/modules.xml"
395
- - ".idea/vcs.xml"
396
- - ".rspec"
397
- - ".rubocop.yml"
398
- - ".ruby-version"
399
- - ".simplecov"
400
390
  - ".yardopts"
401
391
  - CHANGELOG.md
402
- - CODE_OF_CONDUCT.md
403
- - Gemfile
404
392
  - LICENSE.md
405
393
  - README.md
406
- - Rakefile
407
- - config/cucumber.yml
408
- - config/locales/en-US.yml
409
- - config/test_data/LOCAL_data.json
410
- - config/test_data/LOCAL_data.xls
411
- - config/test_data/LOCAL_data.yml
412
- - config/test_data/data.json
413
- - config/test_data/data.xls
414
- - config/test_data/data.yml
415
- - docker-compose.yml
416
- - features/basic_form_page_css.feature
417
- - features/basic_form_page_xpath.feature
418
- - features/custom_controls.feature
419
- - features/media_players.feature
420
- - features/step_definitions/generic_steps.rb.rb
421
- - features/step_definitions/media_steps.rb
422
- - features/support/data/form_data.rb
423
- - features/support/env.rb
424
- - features/support/hooks.rb
425
- - features/support/pages/base_test_page.rb
426
- - features/support/pages/basic_css_form_page.rb
427
- - features/support/pages/basic_form_page.rb
428
- - features/support/pages/basic_xpath_form_page.rb
429
- - features/support/pages/custom_controls_page.rb
430
- - features/support/pages/indexed_sections_page.rb
431
- - features/support/pages/media_test_page.rb
432
- - features/support/sections/header_nav.rb
433
- - features/support/sections/product_card.rb
434
- - features/support/world_data.rb
435
- - features/support/world_pages.rb
436
394
  - lib/devices/devices.yml
437
395
  - lib/testcentricity_web.rb
438
396
  - lib/testcentricity_web/appium_server.rb
@@ -465,71 +423,12 @@ files:
465
423
  - lib/testcentricity_web/web_elements/ui_elements_helper.rb
466
424
  - lib/testcentricity_web/web_elements/video.rb
467
425
  - lib/testcentricity_web/world_extensions.rb
468
- - reports/.keep
469
- - spec/fixtures/page_object.rb
470
- - spec/fixtures/section_object.rb
471
- - spec/spec_helper.rb
472
- - spec/testcentricity_web/browser_spec.rb
473
- - spec/testcentricity_web/elements/audio_spec.rb
474
- - spec/testcentricity_web/elements/button_spec.rb
475
- - spec/testcentricity_web/elements/checkbox_spec.rb
476
- - spec/testcentricity_web/elements/file_field_spec.rb
477
- - spec/testcentricity_web/elements/image_spec.rb
478
- - spec/testcentricity_web/elements/label_spec.rb
479
- - spec/testcentricity_web/elements/link_spec.rb
480
- - spec/testcentricity_web/elements/list_spec.rb
481
- - spec/testcentricity_web/elements/radio_spec.rb
482
- - spec/testcentricity_web/elements/ui_element_spec.rb
483
- - spec/testcentricity_web/elements/video_spec.rb
484
- - spec/testcentricity_web/helper_specs/object_helpers_spec.rb
485
- - spec/testcentricity_web/helper_specs/string_helpers_spec.rb
486
- - spec/testcentricity_web/page_object_spec.rb
487
- - spec/testcentricity_web/section_object_spec.rb
488
- - spec/testcentricity_web/version_spec.rb
489
- - spec/testcentricity_web/webdriver_connect/grid_webdriver_spec.rb
490
- - spec/testcentricity_web/webdriver_connect/local_webdriver_spec.rb
491
- - spec/testcentricity_web/webdriver_connect/mobile_webdriver_spec.rb
492
- - test_site/basic_test_page.html
493
- - test_site/chosen-sprite.png
494
- - test_site/chosen-sprite@2x.png
495
- - test_site/chosen.css
496
- - test_site/chosen.jquery.js
497
- - test_site/chosen.jquery.min.js
498
- - test_site/chosen.min.css
499
- - test_site/chosen.proto.js
500
- - test_site/chosen.proto.min.js
501
- - test_site/composer.json
502
- - test_site/custom_controls_page.html
503
- - test_site/docsupport/chosen.png
504
- - test_site/docsupport/init.js
505
- - test_site/docsupport/init.proto.js
506
- - test_site/docsupport/jquery-1.12.4.min.js
507
- - test_site/docsupport/jquery-3.2.1.min.js
508
- - test_site/docsupport/oss-credit.png
509
- - test_site/docsupport/prism.css
510
- - test_site/docsupport/prism.js
511
- - test_site/docsupport/prototype-1.7.0.0.js
512
- - test_site/docsupport/style.css
513
- - test_site/images/Blouse_Black.jpg
514
- - test_site/images/Granny.jpg
515
- - test_site/images/Printed_Dress.jpg
516
- - test_site/images/T-shirt.jpg
517
- - test_site/images/Wilder.jpg
518
- - test_site/images/You_Betcha.jpg
519
- - test_site/images/jeans3.jpg
520
- - test_site/indexed_sections_page.html
521
- - test_site/media/MIB2-subtitles-pt-BR.vtt
522
- - test_site/media/MIB2.mp4
523
- - test_site/media/MP4_small.mp4
524
- - test_site/media/MPS_sample.mp3
525
- - test_site/media/bbc_scotland_report.mp3
526
- - test_site/media/count_and_bars.mp4
527
- - test_site/media_page.html
528
- - testcentricity_web.gemspec
529
- homepage: https://www.rubydoc.info/gems/testcentricity_web/
426
+ homepage: https://github.com/TestCentricity/testcentricity_web
530
427
  licenses:
531
428
  - BSD-3-Clause
532
- metadata: {}
429
+ metadata:
430
+ changelog_uri: https://github.com/TestCentricity/testcentricity_web/blob/main/CHANGELOG.md
431
+ documentation_uri: https://www.rubydoc.info/gems/testcentricity_web
533
432
  post_install_message:
534
433
  rdoc_options: []
535
434
  require_paths:
@@ -550,47 +449,4 @@ rubygems_version: 3.1.6
550
449
  signing_key:
551
450
  specification_version: 4
552
451
  summary: A Page Object Model Framework for desktop and mobile web testing
553
- test_files:
554
- - features/basic_form_page_css.feature
555
- - features/basic_form_page_xpath.feature
556
- - features/custom_controls.feature
557
- - features/media_players.feature
558
- - features/step_definitions/generic_steps.rb.rb
559
- - features/step_definitions/media_steps.rb
560
- - features/support/data/form_data.rb
561
- - features/support/env.rb
562
- - features/support/hooks.rb
563
- - features/support/pages/base_test_page.rb
564
- - features/support/pages/basic_css_form_page.rb
565
- - features/support/pages/basic_form_page.rb
566
- - features/support/pages/basic_xpath_form_page.rb
567
- - features/support/pages/custom_controls_page.rb
568
- - features/support/pages/indexed_sections_page.rb
569
- - features/support/pages/media_test_page.rb
570
- - features/support/sections/header_nav.rb
571
- - features/support/sections/product_card.rb
572
- - features/support/world_data.rb
573
- - features/support/world_pages.rb
574
- - spec/fixtures/page_object.rb
575
- - spec/fixtures/section_object.rb
576
- - spec/spec_helper.rb
577
- - spec/testcentricity_web/browser_spec.rb
578
- - spec/testcentricity_web/elements/audio_spec.rb
579
- - spec/testcentricity_web/elements/button_spec.rb
580
- - spec/testcentricity_web/elements/checkbox_spec.rb
581
- - spec/testcentricity_web/elements/file_field_spec.rb
582
- - spec/testcentricity_web/elements/image_spec.rb
583
- - spec/testcentricity_web/elements/label_spec.rb
584
- - spec/testcentricity_web/elements/link_spec.rb
585
- - spec/testcentricity_web/elements/list_spec.rb
586
- - spec/testcentricity_web/elements/radio_spec.rb
587
- - spec/testcentricity_web/elements/ui_element_spec.rb
588
- - spec/testcentricity_web/elements/video_spec.rb
589
- - spec/testcentricity_web/helper_specs/object_helpers_spec.rb
590
- - spec/testcentricity_web/helper_specs/string_helpers_spec.rb
591
- - spec/testcentricity_web/page_object_spec.rb
592
- - spec/testcentricity_web/section_object_spec.rb
593
- - spec/testcentricity_web/version_spec.rb
594
- - spec/testcentricity_web/webdriver_connect/grid_webdriver_spec.rb
595
- - spec/testcentricity_web/webdriver_connect/local_webdriver_spec.rb
596
- - spec/testcentricity_web/webdriver_connect/mobile_webdriver_spec.rb
452
+ test_files: []
data/.gitignore DELETED
@@ -1,39 +0,0 @@
1
- # OSX folder stuff
2
- .DS_Store
3
- Thumbs.db
4
-
5
- #IDE project files
6
- .idea
7
- .settings
8
- .project
9
-
10
- /.bundle/
11
- /.yardoc
12
- /_yardoc/
13
- /coverage/
14
- /doc/
15
- /pkg/
16
- /spec/reports/
17
- /tmp/
18
- Gemfile*.lock
19
-
20
- # rspec failure tracking
21
- .rspec_status
22
-
23
- # Ignore test-reports
24
- reports/*.html
25
- reports/*.xml
26
- reports/*.json
27
- reports/screenshots/
28
- test-reports
29
- capybara-*.html
30
- debug.log
31
-
32
- BrowserStackLocal
33
- cbttunnel.jar
34
-
35
- /.yardoc/
36
- /local.log
37
- .run/*.xml
38
-
39
- echo coverage >> .gitignore
data/.idea/.name DELETED
@@ -1 +0,0 @@
1
- testcentricity_web
data/.idea/encodings.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
data/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.0.0-p481" project-jdk-type="RUBY_SDK" />
4
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/testcentricity_web.iml" filepath="$PROJECT_DIR$/.idea/testcentricity_web.iml" />
6
- </modules>
7
- </component>
8
- </project>
data/.idea/vcs.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
6
- </component>
7
- </project>
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- # General configuration options
2
- --color
3
- --require spec_helper
4
- --format documentation
data/.rubocop.yml DELETED
@@ -1,38 +0,0 @@
1
- # See full list of defaults here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml
2
- # To see all cops used see here: https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
3
-
4
- Documentation:
5
- Enabled: false
6
-
7
- AccessorMethodName:
8
- Enabled: false
9
-
10
- TrivialAccessors:
11
- Enabled: false
12
-
13
- RedundantReturn:
14
- Enabled: false
15
-
16
- Metrics/ModuleLength:
17
- Enabled: false
18
-
19
- Metrics/ClassLength:
20
- Enabled: false
21
-
22
- Metrics/LineLength:
23
- Enabled: false
24
-
25
- Metrics/MethodLength:
26
- Enabled: false
27
-
28
- Style/RegexpLiteral:
29
- Enabled: false
30
-
31
- Style/HashSyntax:
32
- Enabled: false
33
-
34
- Metrics/CyclomaticComplexity:
35
- Enabled: false
36
-
37
- Layout/EmptyLines:
38
- Enabled: false
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.7.5
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'simplecov'
4
-
5
- SimpleCov.start do
6
- add_filter '/features/'
7
- add_filter '/spec/'
8
- merge_timeout 3600
9
- end
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in testcentricity_web.gemspec
4
- gemspec
5
-
6
- gem 'redcarpet', :groups => [:development, :test]
data/Rakefile DELETED
@@ -1,115 +0,0 @@
1
- require 'rubygems'
2
- require 'cucumber'
3
- require 'cucumber/rake/task'
4
- require 'docker/compose'
5
- require 'parallel_tests'
6
- require 'rake'
7
- require 'rspec/core/rake_task'
8
- require 'simplecov'
9
- require 'yard'
10
-
11
-
12
- desc 'Run required specs'
13
- RSpec::Core::RakeTask.new(:required_specs) do |t|
14
- t.rspec_opts = '--tag required'
15
- end
16
-
17
-
18
- desc 'Run grid WebDriver specs'
19
- RSpec::Core::RakeTask.new(:grid_specs) do |t|
20
- t.rspec_opts = '--tag grid'
21
- end
22
-
23
-
24
- desc 'Run mobile WebDriver specs'
25
- RSpec::Core::RakeTask.new(:mobile_specs) do |t|
26
- t.rspec_opts = '--tag mobile'
27
- end
28
-
29
-
30
- desc 'Run Cucumber features on local Safari browser'
31
- Cucumber::Rake::Task.new(:safari_local) do |t|
32
- t.profile = 'safari_local'
33
- end
34
-
35
-
36
- desc 'Run Cucumber features on iOS simulator'
37
- Cucumber::Rake::Task.new(:ios_remote) do |t|
38
- t.profile = 'ios_remote'
39
- end
40
-
41
-
42
- desc 'Run required Cucumber features on local web browsers'
43
- task :required_cukes do
44
- %w[chrome_local chrome_headless firefox_local firefox_headless edge_local edge_headless ipad_pro_12_local].each do |profile|
45
- system "parallel_cucumber features/ -o '-p #{profile}' -n 6 --group-by scenarios"
46
- end
47
- end
48
-
49
-
50
- desc 'Run grid Cucumber features on Dockerized Selenium 4 Grid'
51
- task :grid_cukes do
52
- # start up Selenium 4 Grid
53
- compose = Docker::Compose.new
54
- compose.version
55
- compose.up(detached: true)
56
- # run grid features
57
- %w[chrome_grid firefox_grid edge_grid ipad_pro_12_grid].each do |profile|
58
- system "parallel_cucumber features/ -o '-p #{profile}' -n 4 --group-by scenarios"
59
- end
60
- # shut down Selenium Grid
61
- compose.down(remove_volumes: true)
62
- end
63
-
64
-
65
- desc 'Run grid specs on Dockerized Selenium 4 Grid'
66
- task :docker_grid_specs do
67
- # start up Selenium 4 Grid
68
- compose = Docker::Compose.new
69
- compose.version
70
- compose.up(detached: true)
71
- # run grid specs
72
- Rake::Task[:grid_specs].invoke
73
- # shut down Selenium Grid
74
- compose.down(remove_volumes: true)
75
- end
76
-
77
-
78
- desc 'Run mobile web specs and Cucumber features'
79
- task mobile: [:mobile_specs, :ios_remote]
80
-
81
-
82
- desc 'Run required specs and Cucumber features'
83
- task required: [:required_specs, :required_cukes]
84
-
85
-
86
- desc 'Run grid specs and Cucumber features on Dockerized Selenium 4 Grid'
87
- task grid: [:docker_grid_specs, :grid_cukes]
88
-
89
-
90
- desc 'Run all specs'
91
- task all_specs: [:required_specs, :docker_grid_specs, :mobile_specs]
92
-
93
-
94
- desc 'Run all specs and Cucumber features'
95
- task all: [:required, :safari_local, :grid, :mobile]
96
-
97
-
98
- desc 'Update HTML docs'
99
- YARD::Rake::YardocTask.new(:docs) do |t|
100
- t.files = ['lib/**/*.rb']
101
- end
102
-
103
-
104
- desc 'Build and release new version'
105
- task :release do
106
- version = TestCentricityWeb::VERSION
107
- puts "Releasing #{version}, y/n?"
108
- exit(1) unless $stdin.gets.chomp == 'y'
109
- sh 'gem build testcentricity_web.gemspec && ' \
110
- "gem push testcentricity_web-#{version}.gem"
111
- end
112
-
113
-
114
- desc 'Update docs, build gem, and push to RubyGems'
115
- task ship_it: [:docs, :release]