Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the tests pass #585

Conversation

dusi
Copy link
Contributor

@dusi dusi commented Feb 12, 2019

📲 What

Should make the tests pass

🤔 Why

We need failing tests .. NAAAAT

borat

🛠 How

Please see inline comments..


self.viewModel.inputs.viewDidLoad()
}

override func viewDidLayoutSubviews() {
Copy link
Contributor Author

@dusi dusi Feb 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shamefully stole this from https://useyourloaf.com/blog/variable-height-table-view-header and it seems to pass the tests 😄

@dusi
Copy link
Contributor Author

dusi commented Feb 12, 2019

Can you try this suggestion? Seemed to fix the tests for me 🤷‍♂️

Copy link
Contributor

@justinswart justinswart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, seems all good!

@dusi dusi merged commit 29d0d84 into feature-currency-selection-add-tableview-header Feb 12, 2019
@dusi dusi deleted the feature-currency-selection-add-tableview-header-fix branch February 12, 2019 17:25
justinswart added a commit that referenced this pull request Feb 19, 2019
* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings
justinswart added a commit that referenced this pull request Feb 21, 2019
* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Add tableview header

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Add update calls

* swiftlint

* Add update calls

* Add view model tests

* Remove stray file ref

* Fix tests

* swiftlint

* Remove redundant enum case

* Fix rebase duplication

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Fix merge issue

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* Fix merge issue

* Add weak self, fix project file

* Renamed signal

* Refactor view model and tests

* Use more inference
justinswart added a commit that referenced this pull request Feb 22, 2019
* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* ③ [Currency selection] Add table view again (#582)

* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Remove redundant enum case

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Set nav title

* Fix yet another merge issue

* Fix merge

* ③ [Currency selection] Add table view header (#570)

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* ④ [Currency selection] Add change currency api calls (#571)

* Remove currency picker

* swiftlint

* Add SelectCurrencyViewController

* Fix tests

* Update snapshots

* Add tableview header

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Add update calls

* swiftlint

* Add update calls

* Add view model tests

* Remove stray file ref

* Fix tests

* swiftlint

* Remove redundant enum case

* Fix rebase duplication

* Remove reference

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* Add SelectCurrencyViewController

* Fix tests

* Add tableview header

* Update snapshots

* Added ViewController tests

* Removed recordMode line from test

* Simplify layout code for header

* Remove SettingsCurrencyCell

* Fix snapshot tests

* Remove CaseIterable conformance on SettingsAccountCellType

* Use reuseIdentifier local constant

* Update pragma

* Update tableview instantiation

* Implicit returns in lazy vars

* Fix alignment

* ① [Currency selection] Remove currency picker (#568)

* Remove currency picker

* swiftlint

* Remove redundant enum case

* Remove reference

* Remove local var, improve function name

* Set label colour

* Update snapshots

* Fix project file

* Correctly size header/footer views

* Make the tests pass (#585)

* Fix merge issue

* Run snapshot tests on all devices

* Remove duplicate extension, use keypath setter

* Fix autolayout warnings

* Fix merge issue

* Add weak self, fix project file

* Renamed signal

* Refactor view model and tests

* Use more inference

* swiftlint

* Add success banner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants