Skip to content

Commit

Permalink
more trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 27, 2024
1 parent 6c07007 commit 7039160
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ testCORSFilterFunctionalTest

self assert: (driver findElementByID: 'allowed-origins') getText equals: 'None'.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button') detect: [ :button | button getText = 'Same Origin' ]) click.
Transcript show: 'clicked 1'.
(Delay forMilliseconds: 1000) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.

self clickRestart.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button') detect: [ :button | button getText = 'Cross Origin' ]) click.
Transcript show: 'clicked 2'.
(Delay forMilliseconds: 1000) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Error'.

self clickRestart.
((driver findElementsByTagName: 'button') detect: [ :button | button getText = 'Allow other origin' ]) click.
Transcript show: 'clicked 3'.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button') detect: [ :button | button getText = 'Same Origin' ]) click.
(Delay forMilliseconds: 1000) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.
Expand Down

0 comments on commit 7039160

Please sign in to comment.