@@ -38,13 +38,13 @@ module.exports["Test Powerbox"] = function (browser) {
3838 . installApp ( "http://sandstorm.io/apps/david/sandstorm-powerbox-test-app4.spk" ,
3939 "f855d3c96e18e785a3a734a49919ef18" ,
4040 "ygpudg61w49gg0x1t2gw4p7q2q7us24gxsyr1as1hf0ezn2uycth" )
41- . assert . containsText ( "#grainTitle" , "Untitled PowerboxTest" )
41+ . assert . textContains ( "#grainTitle" , "Untitled PowerboxTest" )
4242 . waitForElementVisible ( '.grain-frame' , short_wait )
4343 . grainFrame ( )
4444 . waitForElementVisible ( "#offer" , short_wait )
4545 . click ( "#offer" )
4646 . waitForElementVisible ( "#offer-result" , short_wait )
47- . assert . containsText ( "#offer-result" , "offer: success" )
47+ . assert . textContains ( "#offer-result" , "offer: success" )
4848 . frameParent ( )
4949 . waitForElementVisible ( "#powerbox-offer-url" , short_wait )
5050 . getText ( "#powerbox-offer-url" , function ( result ) {
@@ -58,7 +58,7 @@ module.exports["Test Powerbox"] = function (browser) {
5858 . click ( "#powerbox-request-form button" )
5959 . grainFrame ( )
6060 . waitForElementVisible ( "#request-result" , short_wait )
61- . assert . containsText ( "#request-result" , "request: footest" ) ;
61+ . assert . textContains ( "#request-result" , "request: footest" ) ;
6262 } ) ;
6363} ;
6464
@@ -71,13 +71,13 @@ module.exports["Test PowerboxSave"] = function (browser) {
7171 . installApp ( "http://sandstorm.io/apps/david/sandstorm-powerbox-test-app4.spk" ,
7272 "f855d3c96e18e785a3a734a49919ef18" ,
7373 "ygpudg61w49gg0x1t2gw4p7q2q7us24gxsyr1as1hf0ezn2uycth" )
74- . assert . containsText ( "#grainTitle" , "Untitled PowerboxTest" )
74+ . assert . textContains ( "#grainTitle" , "Untitled PowerboxTest" )
7575 . waitForElementVisible ( '.grain-frame' , short_wait )
7676 . grainFrame ( )
7777 . waitForElementVisible ( "#offer" , short_wait )
7878 . click ( "#offer" )
7979 . waitForElementVisible ( "#offer-result" , short_wait )
80- . assert . containsText ( "#offer-result" , "offer: success" )
80+ . assert . textContains ( "#offer-result" , "offer: success" )
8181 . frameParent ( )
8282 . waitForElementVisible ( "#powerbox-offer-url" , short_wait )
8383 . getText ( "#powerbox-offer-url" , function ( result ) {
@@ -91,7 +91,7 @@ module.exports["Test PowerboxSave"] = function (browser) {
9191 . click ( "#powerbox-request-form button" )
9292 . grainFrame ( )
9393 . waitForElementVisible ( "#request-result" , short_wait )
94- . assert . containsText ( "#request-result" , "request: footest" ) ;
94+ . assert . textContains ( "#request-result" , "request: footest" ) ;
9595 } ) ;
9696} ;
9797
@@ -104,7 +104,7 @@ module.exports["Test Powerbox with failing requirements"] = function (browser) {
104104 . installApp ( "http://sandstorm.io/apps/david/sandstorm-powerbox-test-app4.spk" ,
105105 "f855d3c96e18e785a3a734a49919ef18" ,
106106 "ygpudg61w49gg0x1t2gw4p7q2q7us24gxsyr1as1hf0ezn2uycth" )
107- . assert . containsText ( "#grainTitle" , "Untitled PowerboxTest" )
107+ . assert . textContains ( "#grainTitle" , "Untitled PowerboxTest" )
108108
109109 // We'll use the debugLog at the bottom of the test, but it's nice to open it early and give it time to load.
110110 . click ( "#openDebugLog" )
@@ -113,7 +113,7 @@ module.exports["Test Powerbox with failing requirements"] = function (browser) {
113113 . waitForElementVisible ( "#offer" , short_wait )
114114 . click ( "#offer" )
115115 . waitForElementVisible ( "#offer-result" , short_wait )
116- . assert . containsText ( "#offer-result" , "offer: success" )
116+ . assert . textContains ( "#offer-result" , "offer: success" )
117117 . frameParent ( )
118118 . waitForElementVisible ( "#powerbox-offer-url" , short_wait )
119119 . getText ( "#powerbox-offer-url" , function ( result ) {
@@ -127,12 +127,12 @@ module.exports["Test Powerbox with failing requirements"] = function (browser) {
127127 . click ( "#powerbox-request-form button" )
128128 . grainFrame ( )
129129 . waitForElementVisible ( "#request-result" , short_wait )
130- . assert . containsText ( "#request-result" , "request:" )
130+ . assert . textContains ( "#request-result" , "request:" )
131131 . windowHandles ( function ( windows ) {
132132 browser
133133 . switchWindow ( windows . value [ 1 ] )
134134 . waitForElementVisible ( ".grainlog-contents > pre" , short_wait )
135- . assert . containsText ( ".grainlog-contents > pre" , "Error: Capability revoked because a user involved in introducing it no longer has the necessary permissions" )
135+ . assert . textContains ( ".grainlog-contents > pre" , "Error: Capability revoked because a user involved in introducing it no longer has the necessary permissions" )
136136 } ) ;
137137 } )
138138 . end ( ) ;
@@ -143,7 +143,7 @@ module.exports["Test Powerbox embedded request flow"] = function (browser) {
143143 . init ( )
144144 . loginDevAccount ( )
145145 . uploadTestApp ( )
146- . assert . containsText ( "#grainTitle" , "Untitled Sandstorm Test App instance" )
146+ . assert . textContains ( "#grainTitle" , "Untitled Sandstorm Test App instance" )
147147 . url ( function ( grainUrl ) {
148148 var grainId = grainUrl . value . split ( "/" ) . pop ( ) ;
149149 var cardSelector = ".powerbox-card button[data-card-id=\"grain-" + grainId + "\"]" ;
@@ -154,7 +154,7 @@ module.exports["Test Powerbox embedded request flow"] = function (browser) {
154154 . waitForElementVisible ( actionSelector , short_wait )
155155 . click ( actionSelector )
156156 . waitForElementVisible ( "#grainTitle" , medium_wait )
157- . assert . containsText ( "#grainTitle" , "Untitled Sandstorm Test App instance" )
157+ . assert . textContains ( "#grainTitle" , "Untitled Sandstorm Test App instance" )
158158 . grainFrame ( )
159159 . waitForElementPresent ( "#do-powerbox-request" , medium_wait )
160160 . click ( "#do-powerbox-request" )
@@ -169,7 +169,7 @@ module.exports["Test Powerbox embedded request flow"] = function (browser) {
169169 . frameParent ( )
170170 . grainFrame ( )
171171 . waitForElementVisible ( "#result-text" , short_wait )
172- . assert . containsText ( "#result-text" , "foo bar baz" ) ;
172+ . assert . textContains ( "#result-text" , "foo bar baz" ) ;
173173 } ) ;
174174} ;
175175
@@ -205,7 +205,7 @@ module.exports["Test Powerbox query"] = function (browser) {
205205 if ( expectedMatches [ id ] ) {
206206 browser . assert . elementPresent ( cardSelector ) ;
207207 } else {
208- browser . assert . elementNotPresent ( cardSelector ) ;
208+ browser . assert . not . elementPresent ( cardSelector ) ;
209209 }
210210 }
211211
0 commit comments