pageify 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 630e6ce531498364ecae10fa314694ba451f36d4
4
- data.tar.gz: 25651100fc86e853d22741c213e9ccd8fd72a51a
3
+ metadata.gz: b2edcf30ded6fabb39ab88aa106e0e598404b7d3
4
+ data.tar.gz: 1c22cfe32425d65feaa81260d5455308eca30292
5
5
  SHA512:
6
- metadata.gz: c7f9e8966aaa5c10ff980196d7a246fb1e169e3651b2aa2ef40ad8a7cff5c361ce72e0b436f167917ae92672f4c00f6106ed033c1b7c0cf551b5e44f60d8a771
7
- data.tar.gz: 703e38a7d16e524e2d8c7817262842e6bd62693f8295cea571d6019d62c020d271f4dade0f208a20380f9c6270bfa67da1af20bdba2936723e6b2cb45d17a0b5
6
+ metadata.gz: 714ea849afdb150c48f544f9a07217be0b643691843b0d485cb8772bbb715e1350a36284d17b3394bbbd5fdfbf36ed81edebc361ab695bc45d239671968cc64a
7
+ data.tar.gz: e6dd1a7e4facf3c361f3a62ff63fbd03ae736bc839b8a08d60eca8f2009947e90ecf054c4e70f637fdf7e521eafb703548159f156ade53f8dc783e6417226c98
data/README.md CHANGED
@@ -8,6 +8,7 @@ Simplest way to define page objects. Bonus, tremendously fast tests.
8
8
 
9
9
  Page definition looks like this
10
10
  ```yaml
11
+ # sign_up_page.yml
11
12
  sign_up: ".home"
12
13
  user_name: ".user"
13
14
  password: ".password"
@@ -15,6 +16,7 @@ sign_up: ".home"
15
16
  male: "radio.male"
16
17
  female: "radio.female"
17
18
  submit: "[name='submit']"
19
+ # profile_page.yml
18
20
  profile_page:
19
21
  user_name: ".user"
20
22
  password: ".password"
@@ -28,6 +30,9 @@ sign_up.set_fields {:user_name=> "hi",:password=>"bla",:male=>true,:age=>10}
28
30
  sign_up.submit.click
29
31
  # assert multiple fields
30
32
  profile_page.should_match_fields {:user_name=> "hi",:male=>true,:age=>10}
33
+ # check for state of elements
34
+ sign_up.should_have_enabled ['user_name','password','male','age']
35
+ sign_up.should_have_disabled ['user_name']
31
36
  ```
32
37
  or like this
33
38
  ```ruby
@@ -0,0 +1,3 @@
1
+ require 'pageify/capybara/base'
2
+ require 'pageify/capybara/bulk_actions'
3
+ require 'pageify/capybara/assertions'
@@ -1,4 +1,4 @@
1
- require 'pageify/capybara/base'
1
+ require 'pageify/capybara'
2
2
  describe Pageify do
3
3
  before :each do
4
4
  base_dir = File.expand_path File.join __FILE__, '..', 'pages'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deepak