Skip to content

Commit

Permalink
add a delay to debug a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Oct 25, 2024
1 parent 4d3541c commit f3d68c0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
commands
runSeleniumServerInTerminal
<script>

"seasideRepository := self seasideIcebergRepository.
repositoryLocation := seasideRepository location.
location exists ifFalse:[ ^ Error signal: 'Could not find git checkout' ]."
| bashScript |
bashScript := 'npm install selenium-standalone && npx selenium-standalone install && npx selenium-standalone start &'.
(LibC resultOfCommand: bashScript) inspect
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
world menu
runSeleniumServerInTerminalMenuCommandOn: builder

<worldMenu>

(builder item: 'Run Selenium Server in Terminal')
parent: #Seaside;
order: 3;
action: [ self runSeleniumServerInTerminal ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
private
seasideIcebergRepository

^ IceRepository registry
detect: [ :repository | repository workingCopy packages anySatisfy:[ :p | p packageName = 'Seaside-Core' ] ]
ifNone: [ Error signal: 'Could not find the Seaside repository.' ]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ testing
testTableReportFunctionalTest
| firstColumn classNames |
self selectTest: 'WATableReportFunctionalTest'.

(Delay forSeconds: 1) wait.
firstColumn := driver findElementsByCSSSelector: 'table>tbody>tr>td:first-child'.
classNames := (firstColumn collect: [ :e | e getText ]).
((WAComponent allSubclasses collect: [ :c | c name greaseString ])
Expand Down

0 comments on commit f3d68c0

Please sign in to comment.