Skip to content

Commit

Permalink
activate restart again
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Brichau committed Jan 27, 2024
1 parent 1a1f942 commit 01c4669
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ testCORSFilterFunctionalTest
(Delay forMilliseconds: 300) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.

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

" self clickRestart. "
self clickRestart.
((driver findElementsByTagName: 'button') detect: [ :button | button getText = 'Allow other origin' ]) click.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button') detect: [ :button | button getText = 'Same Origin' ]) click.
(Delay forMilliseconds: 300) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.

" self clickRestart. "
self clickRestart.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button') detect: [ :button | button getText = 'Cross Origin' ]) click.
(Delay forMilliseconds: 300) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.
Expand Down

0 comments on commit 01c4669

Please sign in to comment.