@@ -12,7 +12,7 @@ import XCTest
1212/// is a real tap on the real page.
1313final class WebNavUITests : ShellTestCase {
1414 private static let targets = [ " Show sidebar " , " Chats " , " Bots " , " Quarterly forecast " , " Research Bot " ,
15- " Sam Rivera " , " Settings " , " Sign out " , " Message " , " OpenBot " ]
15+ " Sam Rivera, Acme " , " Settings " , " Sign out " , " Ask anything " , " OpenBot " ]
1616
1717 private func launchWebNav ( moment : String , reset : Bool = true ) -> XCUIApplication {
1818 launch ( base : ShellTestCase . mockA , moment : moment , reset : reset , auto : true ,
@@ -112,7 +112,7 @@ final class WebNavUITests: ShellTestCase {
112112 // Sign out from the web app's Account menu: the native first screen.
113113 XCTAssertTrue ( tapPage ( app , " Show sidebar " ) )
114114 sleep ( 2 )
115- XCTAssertTrue ( tapPage ( app , " Sam Rivera " ) , " no account button in the drawer " )
115+ XCTAssertTrue ( tapPage ( app , " Sam Rivera, Acme " ) , " no account button in the drawer " )
116116 sleep ( 1 )
117117 screenshot ( " 7-account-menu " )
118118 XCTAssertTrue ( tapPage ( app , " Sign out " ) , " no Sign out in the Account menu " )
@@ -145,7 +145,7 @@ final class WebNavUITests: ShellTestCase {
145145 sleep ( 2 )
146146 XCTAssertTrue ( tapPage ( app , " Quarterly forecast " ) , " no conversation in the drawer " )
147147 sleep ( 3 )
148- if tapPage ( app , " Message " ) {
148+ if tapPage ( app , " Ask anything " ) {
149149 sleep ( 1 )
150150 app . typeText ( " Can you add a range for Q3? " )
151151 sleep ( 2 )
@@ -162,15 +162,15 @@ final class WebNavUITests: ShellTestCase {
162162 sleep ( 3 )
163163 screenshot ( " tour-bot " )
164164
165- if pagePoints ( app ) [ " Sam Rivera " ] == nil { tapPage ( app , " Show sidebar " ) ; sleep ( 2 ) }
166- XCTAssertTrue ( tapPage ( app , " Sam Rivera " ) , " no account button " )
165+ if pagePoints ( app ) [ " Sam Rivera, Acme " ] == nil { tapPage ( app , " Show sidebar " ) ; sleep ( 2 ) }
166+ XCTAssertTrue ( tapPage ( app , " Sam Rivera, Acme " ) , " no account button " )
167167 sleep ( 1 )
168168 XCTAssertTrue ( tapPage ( app , " Settings " ) , " no Settings in the Account menu " )
169169 sleep ( 3 )
170170 screenshot ( " tour-settings " )
171171
172- if pagePoints ( app ) [ " Sam Rivera " ] == nil { tapPage ( app , " Show sidebar " ) ; sleep ( 2 ) }
173- XCTAssertTrue ( tapPage ( app , " Sam Rivera " ) , " no account button " )
172+ if pagePoints ( app ) [ " Sam Rivera, Acme " ] == nil { tapPage ( app , " Show sidebar " ) ; sleep ( 2 ) }
173+ XCTAssertTrue ( tapPage ( app , " Sam Rivera, Acme " ) , " no account button " )
174174 sleep ( 1 )
175175 XCTAssertTrue ( tapPage ( app , " Sign out " ) , " no Sign out " )
176176 XCTAssertTrue ( app . buttons [ " sign-in-button " ] . waitForExistence ( timeout : 20 ) , " Sign out did not bring back the first screen " )
0 commit comments