Skip to content

Commit

Permalink
Merge pull request #66 from SeasideSt/fix-getCapabilities
Browse files Browse the repository at this point in the history
Fix get capabilities
  • Loading branch information
jbrichau authored Jan 2, 2024
2 parents 0b1ff92 + d0bb7b9 commit 6b80703
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ running
testGetCapabilities

| capabilities platform |

capabilities := driver getCapabilities.

self assert: capabilities getBrowserName = 'chrome'.
self assert: (capabilities getBrowserName includesSubstring: 'chrome'). "can be chrome or chrome-headless-shell"

platform := capabilities getPlatform.
self assert: (#('ANY' 'MAC' 'WINDOWS' 'UNIX' 'LINUX') includes: platform family name).
self assert: (platform is: (BPPlatform valueOf: 'ANY')).
self assert:
(((platform is: (BPPlatform valueOf: 'MAC'))
xor: (platform is: (BPPlatform valueOf: 'UNIX')))
xor: (platform is: (BPPlatform valueOf: 'WINDOWS'))).
xor: (platform is: (BPPlatform valueOf: 'WINDOWS')))

0 comments on commit 6b80703

Please sign in to comment.