-
Notifications
You must be signed in to change notification settings - Fork 355
@orta: Fixes for Kiosk CC testing on Staging, Unresolved bids, Bidding errors #510
Conversation
|
let signal = RACSignal.`if`(boolSignal, then: self.updateUser(), `else`: self.createNewUser()) | ||
|
||
// After update/create signal finishes, add a CC to their account (if we've collceted one) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: collected
structurally it looks good, but there's a lot of code in here with changes and no tests |
Cool, I'll add some tests. |
@@ -3,8 +3,13 @@ import UIKit | |||
class DeveloperOnlyView: UIView { | |||
|
|||
override func awakeFromNib() { | |||
let shouldShow = AppSetup.sharedState.showDebugButtons && AppSetup.sharedState.useStaging | |||
let notTests = NSClassFromString("XCTest") == nil | |||
self.hidden = !shouldShow && notTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic here was messy, so I made it prettier.
OK, got the tests passing again, and added some minimal tests. The dev-only views were showing in some tests, which has been correct. Also, I changed the placeholder for the manual CC entry's year to be in the future. |
667039c
to
10e079f
Compare
expect(subject.bidderPosition?.id) == "5437dd107261692daa170000" | ||
} | ||
|
||
it("maps bid deatils into a proper request") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore: typo
No, that's correct. The bid has been submitted, we just don't know whether or not the user is the highest bidder. "Bid Submitted" is the most neutral language we could find. The previous screenshot was incorrect, as well, since it indicates you need to increase your bid (the test setup was wrong). |
I'll rename the test, remove "error" – good idea. |
Ace 👍 |
@orta: Fixes for Kiosk CC testing on Staging, Unresolved bids, Bidding errors
Fixes: