 import Nimble
 import ScrollViewController
 import RxSwift
+import EarlGrey
 
 @testable import SharedShoppingApp
 

                        }
                    }

                    it("should have correct title") {
                        expect(sut.navigationItem.title).to(equal(inputs.title))
                    }

                    it("should embed scroll view controller") {
                        expect(sut.childViewControllers).to(contain(scrollViewController))
                    }

                    it("should enable bouncing in scroll view controller") {
                        expect(scrollViewController.scrollView.alwaysBounceVertical).to(beTrue())
                    }

                    it("should set correct view for scroll view controller content") {
                        expect(scrollViewController.contentView).to(beAKindOf(CreateShoppingView.self))
                    }

                    it("should set correct content view") {
                        expect(createShoppingView).notTo(beNil())
                    }

                    context("when view did appear") {
                        beforeEach {
                            sut.viewDidAppear(false)
                        }

                    )
                }

                context("present on screen") {
                    var createShoppingView: CreateShoppingView!

                    beforeEach {
                        GREYTestHelper.enableFastAnimation()
                        UIApplication.shared.keyWindow?.rootViewController = sut
                        createShoppingView = scrollViewController.contentView as? CreateShoppingView
                    }

                    afterEach {
                        UIApplication.shared.keyWindow?.rootViewController = nil
                        GREYTestHelper.disableFastAnimation()
                    }

                    it("should have correct title") {
                        expect(sut.navigationItem.title).to(equal(inputs.title))
                    }

                    it("should embed scroll view controller") {
                        expect(sut.childViewControllers).to(contain(scrollViewController))
                    }

                    it("should enable bouncing in scroll view controller") {
                        expect(scrollViewController.scrollView.alwaysBounceVertical).to(beTrue())
                    }

                    it("should set correct view for scroll view controller content") {
                        expect(scrollViewController.contentView).to(beAKindOf(CreateShoppingView.self))
                    }

                    describe("right bar button item in navigation item") {
