From 6f4df67be25da1f7aadcd5727c4f3496f4047c68 Mon Sep 17 00:00:00 2001 From: Johan Brichau Date: Sat, 27 Jan 2024 16:39:56 +0100 Subject: [PATCH] trace 2 --- .../instance/testCORSFilterFunctionalTest.st | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/repository/Seaside-Tests-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/testCORSFilterFunctionalTest.st b/repository/Seaside-Tests-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/testCORSFilterFunctionalTest.st index ae6d6ee59..b32d973fb 100644 --- a/repository/Seaside-Tests-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/testCORSFilterFunctionalTest.st +++ b/repository/Seaside-Tests-Parasol.package/WAWebDriverFunctionalTestCase.class/instance/testCORSFilterFunctionalTest.st @@ -2,22 +2,20 @@ testing testCORSFilterFunctionalTest [ WACORSResourceExample register; registerCorsAdaptor. - self selectTest: 'WACORSFilterFunctionalTest'. - self should: [ driver findElementByPartialLinkText: 'Register CORS Resource' ] raise: BPNoSuchElementException. 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. + (Delay forMilliseconds: 300) 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. + (Delay forMilliseconds: 300) wait. Transcript show: 'clicked 2'. - (Delay forMilliseconds: 1000) wait. - self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Error'. + self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Error'. + Transcript show: 'FOOBAR'. self clickRestart. ((driver findElementsByTagName: 'button') detect: [ :button | button getText = 'Allow other origin' ]) click.