testcentricity_web 4.1.6 → 4.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +2 -2
  4. data/Rakefile +32 -9
  5. data/config/cucumber.yml +20 -7
  6. data/config/test_data/data.json +12 -0
  7. data/config/test_data/data.xls +0 -0
  8. data/config/test_data/data.yml +12 -0
  9. data/features/basic_test_page_css.feature +11 -0
  10. data/features/basic_test_page_xpath.feature +3 -0
  11. data/features/media_players.feature +87 -0
  12. data/features/step_definitions/generic_steps.rb.rb +7 -0
  13. data/features/step_definitions/media_steps.rb +30 -0
  14. data/features/support/env.rb +14 -7
  15. data/features/support/pages/base_test_page.rb +11 -0
  16. data/features/support/pages/basic_css_test_page.rb +8 -5
  17. data/features/support/pages/basic_test_page.rb +67 -8
  18. data/features/support/pages/basic_xpath_test_page.rb +8 -4
  19. data/features/support/pages/custom_controls_page.rb +16 -0
  20. data/features/support/pages/indexed_sections_page.rb +16 -0
  21. data/features/support/pages/media_test_page.rb +195 -0
  22. data/features/support/sections/header_nav.rb +28 -0
  23. data/features/support/world_data.rb +12 -0
  24. data/features/support/world_pages.rb +3 -0
  25. data/lib/testcentricity_web/data_objects/environment.rb +12 -0
  26. data/lib/testcentricity_web/version.rb +1 -1
  27. data/lib/testcentricity_web/web_core/page_object.rb +1 -8
  28. data/lib/testcentricity_web/web_elements/checkbox.rb +3 -4
  29. data/lib/testcentricity_web/web_elements/media.rb +50 -4
  30. data/lib/testcentricity_web/web_elements/radio.rb +5 -1
  31. data/test_site/basic_test_page.html +51 -1
  32. data/test_site/custom_controls_page.html +58 -0
  33. data/test_site/indexed_sections_page.html +58 -0
  34. data/test_site/media/MIB2-subtitles-pt-BR.vtt +49 -0
  35. data/test_site/media/MIB2.mp4 +0 -0
  36. data/test_site/media_page.html +60 -7
  37. metadata +25 -4
  38. data/features/support/pages/media_page.rb +0 -11
@@ -15,19 +15,72 @@
15
15
  text-align: left;
16
16
  padding: 8px;
17
17
  }
18
+ body {
19
+ margin: 0;
20
+ font-family: Arial, Helvetica, sans-serif;
21
+ }
22
+ .topnav {
23
+ overflow: hidden;
24
+ background-color: #333;
25
+ }
26
+ .topnav a {
27
+ float: left;
28
+ color: #f2f2f2;
29
+ text-align: center;
30
+ padding: 12px 14px;
31
+ text-decoration: none;
32
+ font-size: 15px;
33
+ }
34
+ .topnav a:hover {
35
+ background-color: #ddd;
36
+ color: black;
37
+ }
38
+ .topnav a.active {
39
+ background-color: #04AA6D;
40
+ color: white;
41
+ }
18
42
  </style>
19
43
  </head>
20
44
  <body>
21
45
  <div class="media-page-body">
22
- <h1>Media Page</h1>
23
- <video id="video_player" width="400" controls>
24
- <source src="media/MP4_small.mp4" type="video/mp4">
25
- </video>
46
+ <h2>Media Page</h2>
26
47
 
27
- <audio id="audio_player" controls>
28
- <source src="media/MPS_sample.mp3" type="audio/mp3">
29
- </audio>
48
+ <div id="nav_bar" class="topnav">
49
+ <a id="form_link" href="basic_test_page.html">Basic HTML Form</a>
50
+ <a id="media_link" class="active" href="#">Media</a>
51
+ <a id="indexed_sections_link" href="indexed_sections_page.html">Indexed Sections</a>
52
+ <a id="custom_controls_link" href="custom_controls_page.html">Custom Controls</a>
53
+ </div>
30
54
 
55
+ <table>
56
+ <tbody>
57
+ <tr>
58
+ <td>
59
+ <label id="video">Video:</label>
60
+ <video id="video_player" width="400" controls>
61
+ <source src="media/count_and_bars.mp4" type="video/mp4">
62
+ </video>
63
+ </td>
64
+ </tr>
65
+ <tr>
66
+ <td>
67
+ <label id="audio">Audio:</label>
68
+ <audio id="audio_player" controls>
69
+ <source src="media/MPS_sample.mp3" type="audio/mp3">
70
+ </audio>
71
+ </td>
72
+ </tr>
73
+ <tr>
74
+ <td>
75
+ <label id="video2">Video with Captions:</label>
76
+ <video id="video_player2" width="400" controls>
77
+ <source src="media/MIB2.mp4" type="video/mp4">
78
+ <track src="media/MIB2-subtitles-pt-BR.vtt" kind="subtitles" srclang="pt" label="Portuguese" default>
79
+ </video>
80
+ </td>
81
+ </tr>
82
+ </tbody>
83
+ </table>
31
84
  </div>
32
85
  </body>
33
86
  </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.6
4
+ version: 4.1.7
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-03-21 00:00:00.000000000 Z
11
+ date: 2022-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -334,16 +334,26 @@ files:
334
334
  - README.md
335
335
  - Rakefile
336
336
  - config/cucumber.yml
337
+ - config/test_data/data.json
338
+ - config/test_data/data.xls
339
+ - config/test_data/data.yml
337
340
  - docker-compose-v3.yml
338
341
  - features/basic_test_page_css.feature
339
342
  - features/basic_test_page_xpath.feature
343
+ - features/media_players.feature
340
344
  - features/step_definitions/generic_steps.rb.rb
345
+ - features/step_definitions/media_steps.rb
341
346
  - features/support/env.rb
342
347
  - features/support/hooks.rb
348
+ - features/support/pages/base_test_page.rb
343
349
  - features/support/pages/basic_css_test_page.rb
344
350
  - features/support/pages/basic_test_page.rb
345
351
  - features/support/pages/basic_xpath_test_page.rb
346
- - features/support/pages/media_page.rb
352
+ - features/support/pages/custom_controls_page.rb
353
+ - features/support/pages/indexed_sections_page.rb
354
+ - features/support/pages/media_test_page.rb
355
+ - features/support/sections/header_nav.rb
356
+ - features/support/world_data.rb
347
357
  - features/support/world_pages.rb
348
358
  - lib/devices/devices.yml
349
359
  - lib/testcentricity_web.rb
@@ -379,9 +389,13 @@ files:
379
389
  - lib/testcentricity_web/world_extensions.rb
380
390
  - reports/.keep
381
391
  - test_site/basic_test_page.html
392
+ - test_site/custom_controls_page.html
382
393
  - test_site/images/Granny.jpg
383
394
  - test_site/images/Wilder.jpg
384
395
  - test_site/images/You_Betcha.jpg
396
+ - test_site/indexed_sections_page.html
397
+ - test_site/media/MIB2-subtitles-pt-BR.vtt
398
+ - test_site/media/MIB2.mp4
385
399
  - test_site/media/MP4_small.mp4
386
400
  - test_site/media/MPS_sample.mp3
387
401
  - test_site/media_page.html
@@ -414,11 +428,18 @@ summary: A Page Object and Data Object Model Framework for desktop and mobile we
414
428
  test_files:
415
429
  - features/basic_test_page_css.feature
416
430
  - features/basic_test_page_xpath.feature
431
+ - features/media_players.feature
417
432
  - features/step_definitions/generic_steps.rb.rb
433
+ - features/step_definitions/media_steps.rb
418
434
  - features/support/env.rb
419
435
  - features/support/hooks.rb
436
+ - features/support/pages/base_test_page.rb
420
437
  - features/support/pages/basic_css_test_page.rb
421
438
  - features/support/pages/basic_test_page.rb
422
439
  - features/support/pages/basic_xpath_test_page.rb
423
- - features/support/pages/media_page.rb
440
+ - features/support/pages/custom_controls_page.rb
441
+ - features/support/pages/indexed_sections_page.rb
442
+ - features/support/pages/media_test_page.rb
443
+ - features/support/sections/header_nav.rb
444
+ - features/support/world_data.rb
424
445
  - features/support/world_pages.rb
@@ -1,11 +0,0 @@
1
- # Page Object class definition for Media Test page with CSS locators
2
-
3
- class MediaTestPage < TestCentricity::PageObject
4
- trait(:page_name) { 'Media Test' }
5
- trait(:page_locator) { 'div.media-page-body' }
6
- trait(:page_url) { '/media_page.html' }
7
-
8
- # Media Test page UI elements
9
- video :video_player, 'video#video_player'
10
- audio :audio_player, 'audio#audio_player'
11
- end