Skip to content

Commit

Permalink
adapt test to deal with new browser name running in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 2, 2024
1 parent f711cfd commit d0bb7b9
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 equals: '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 d0bb7b9

Please sign in to comment.