Skip to content

Commit

Permalink
rename for: into widgetFor:
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jun 19, 2024
1 parent d6e2c80 commit 18d5ffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Interactions-Tests/SpecInteractionTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SpecInteractionTest >> testCanOpenAConfirmation [
message: 'Are you sure you want to delete this file?';
yesLabel: 'delete'.

widget := backend for: confirm.
widget := backend widgetFor: confirm.
widget doInteraction.

window := widget window.
Expand All @@ -49,7 +49,7 @@ SpecInteractionTest >> testCanOpenAFileRequest [
filter: '.image';
currentFolder: FileLocator home.

widget := backend for: fileRequest.
widget := backend widgetFor: fileRequest.
widget doInteraction.

window := widget window.
Expand All @@ -66,7 +66,7 @@ SpecInteractionTest >> testCanOpenAnInformation [
title: 'Some confirmation needed';
message: 'Do you want to proceed?'.

widget := backend for: inform.
widget := backend widgetFor: inform.
widget doInteraction.

window := widget window.
Expand All @@ -88,7 +88,7 @@ SpecInteractionTest >> testCanSelectAFile [
currentFolder: fs root;
yourself.

widget := backend for: fileRequest.
widget := backend widgetFor: fileRequest.
widget doInteraction.
widget selectFile: bImage.
file := widget confirm.
Expand All @@ -110,7 +110,7 @@ SpecInteractionTest >> testCanSelectAFolder [
currentFolder: fs root;
yourself.

widget := backend for: fileRequest.
widget := backend widgetFor: fileRequest.
widget doInteraction.
widget selectFile: bFolder.
folder := widget confirm.
Expand Down
2 changes: 1 addition & 1 deletion src/Interactions-Widgets/SpecInteraction.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SpecInteraction class >> default [
]

{ #category : 'querying' }
SpecInteraction >> for: aUserInteraction [
SpecInteraction >> widgetFor: aUserInteraction [

^ aUserInteraction widgetFor: self
]
Expand Down

0 comments on commit 18d5ffe

Please sign in to comment.