-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
144 additions
and
22 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...DD-GUI.package/ATDDBrowser.class/instance/buildTestEntityUIFor.testingEntityType.with..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/AutoTDD-Tests.package/ATDDBrowserTests.class/instance/testCreateGitHubAction.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tests | ||
testCreateGitHubAction | ||
|
||
| amount editor | | ||
|
||
amount := ATDDGitHubActionEditor allInstances size. | ||
editor := browser createGitHubAction. | ||
self assert: ATDDGitHubActionEditor allInstances size = (amount + 1). | ||
windowsToDelete add: editor |
9 changes: 9 additions & 0 deletions
9
packages/AutoTDD-Tests.package/ATDDBrowserTests.class/instance/testEditGitHubAction.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tests | ||
testEditGitHubAction | ||
|
||
| amount editor | | ||
|
||
amount := ATDDGitHubActionEditor allInstances size. | ||
editor := browser createGitHubAction. | ||
self assert: ATDDGitHubActionEditor allInstances size = (amount + 1). | ||
windowsToDelete add: editor |
34 changes: 34 additions & 0 deletions
34
...s.package/ATDDBrowserTests.class/instance/testEditPauseResultsForSelectedGitHubActions.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
tests | ||
testEditPauseResultsForSelectedGitHubActions | ||
|
||
| gha amount window | | ||
|
||
gha := ATDDGitHubAction new. | ||
gha repositoryURL: 'hpi-swa-teaching/AutoTDD'; | ||
refreshInterval: 300. | ||
"Making it use the Mock API" | ||
gha repository client apiUrl: 'http://localhost:9999/'. | ||
gha resume. | ||
browser gitHubActions addLast: gha. | ||
ATDDBrowser update. | ||
self assert: (browser gitHubActionAt: 1) equals: false. | ||
browser gitHubActionAt: 1 put: true. | ||
self assert: (browser gitHubActionAt: 1) equals: true. | ||
self assert: (browser selectedGitHubActions includes: gha). | ||
amount := ATDDGitHubActionEditor allInstances size. | ||
"Opens an editor for the selected gitHubAction" | ||
window := browser editGitHubActions. | ||
self assert: ATDDGitHubActionEditor allInstances size = (amount + 1). | ||
windowsToDelete add: window. | ||
amount := ATDDGitHubActionResults allInstances size. | ||
"Opens results for the selected gitHubAction" | ||
window := browser resultsGitHubActions. | ||
windowsToDelete add: window. | ||
self assert: ATDDGitHubActionResults allInstances size = (amount + 1). | ||
self assert: (browser selectedGitHubActions allSatisfy: [ :each | each paused not ]). | ||
browser pauseGitHubActions. | ||
self assert: (browser selectedGitHubActions allSatisfy: [ :each | each paused ]). | ||
browser resumeSelectedGitHubActions. | ||
self assert: (browser selectedGitHubActions allSatisfy: [ :each | each paused not ]). | ||
browser removeSelectedGitHubActions. | ||
self assert: browser selectedGitHubActions isEmpty |
32 changes: 32 additions & 0 deletions
32
....package/ATDDBrowserTests.class/instance/testEditPauseResultsForSelectedTravisStatuses.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
tests | ||
testEditPauseResultsForSelectedTravisStatuses | ||
|
||
| travisSatus amount window | | ||
|
||
travisSatus := ATDDTravisStatus new. | ||
travisSatus repositoryURL: 'hpi-swa-teaching/AutoTDD'; | ||
refreshInterval: 300. | ||
travisSatus resume. | ||
browser travisStatuses addLast: travisSatus. | ||
ATDDBrowser update. | ||
self assert: (browser travisStatusAt: 1) equals: false. | ||
browser travisStatusAt: 1 put: true. | ||
self assert: (browser travisStatusAt: 1) equals: true. | ||
self assert: (browser selectedTravisStatuses includes: travisSatus). | ||
amount := ATDDTravisStatusEditor allInstances size. | ||
"Opens an editor for the selected travisSatus" | ||
window := browser editTravisStatuses. | ||
self assert: ATDDTravisStatusEditor allInstances size = (amount + 1). | ||
windowsToDelete add: window. | ||
amount := ATDDTravisStatusResults allInstances size. | ||
"Opens results for the selected travisSatus" | ||
window := browser resultsTravisStatuses. | ||
windowsToDelete add: window. | ||
self assert: ATDDTravisStatusResults allInstances size = (amount + 1). | ||
self assert: (browser selectedTravisStatuses allSatisfy: [ :each | each paused not ]). | ||
browser pauseTravisStatuses. | ||
self assert: (browser selectedTravisStatuses allSatisfy: [ :each | each paused ]). | ||
browser resumeSelectedTravisStatuses. | ||
self assert: (browser selectedTravisStatuses allSatisfy: [ :each | each paused not ]). | ||
browser removeSelectedTravisStatuses. | ||
self assert: browser selectedTravisStatuses isEmpty |
9 changes: 9 additions & 0 deletions
9
packages/AutoTDD-Tests.package/ATDDBrowserTests.class/instance/testOpenProfileEditor.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tests | ||
testOpenProfileEditor | ||
|
||
| amount window| | ||
|
||
amount := ATDDProfileEditor allInstances size. | ||
window := browser openProfileEditor. | ||
self assert: ATDDProfileEditor allInstances size = (amount + 1). | ||
windowsToDelete add: window |
10 changes: 10 additions & 0 deletions
10
packages/AutoTDD-Tests.package/ATDDBrowserTests.class/instance/testToggleSounds.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tests | ||
testToggleSounds | ||
|
||
| oldValue | | ||
|
||
oldValue := ATDDSoundPlayer instance isMuted. | ||
browser toggleSounds. | ||
self assert: ATDDSoundPlayer instance isMuted = (oldValue not). | ||
"reverting to old settings" | ||
browser toggleSounds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ges/AutoTDD-Tests.package/ATDDGitHubActionsResultsTests.class/instance/testSelectedJob.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
tests | ||
testSelectedJob | ||
|
||
| temp originalJobs | | ||
|
||
temp := ATDDGitHubActionWorkflowJob | ||
newForId: 1 | ||
name: 'idk dude' | ||
conclusion: 'success'. | ||
resultsWindow selectedHistory: 1. | ||
originalJobs := resultsWindow jobs. | ||
"jobs needs to be configured manually so that it sends a correct request to the mockAPI" | ||
resultsWindow jobs: { temp }. | ||
resultsWindow selectedJob: 1. | ||
"Simulates clicking on a specific job and then that this loads a log". | ||
self assert: resultsWindow log isEmpty = false. | ||
self assert: (resultsWindow log asString includesSubstring: '69 tests passed') = true. | ||
resultsWindow simplifyLogCheckBoxAction. | ||
self assert: resultsWindow shouldSimplifyLog = false. | ||
"Some text that's in the log when it's not simplified". | ||
self assert: (resultsWindow log asString includesSubstring: 'Starting: Request a runner to run this job') = true. | ||
resultsWindow shouldSimplifyLog: true. | ||
resultsWindow jobs: originalJobs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters