@@ -31,9 +31,17 @@ export function suite(browserName: string) {
3131 } ) ;
3232
3333 test ( "nav/guides" , async testExecutionObject => {
34- await util . $x ( driver , "//nav//hx-disclosure" , "Guides" ) . click ( ) ;
35- let guidesText = await driver . findElement ( By . id ( "nav-Guides" ) ) . getText ( ) ;
36- testExecutionObject . deepEqual ( guidesText , "Getting Started" ) ;
34+ const expected = [
35+ "Getting Started" ,
36+ "FAQ" ,
37+ "React Compatibility" ,
38+ "Polyfills"
39+ ] ;
40+ await driver . findElement ( By . css ( "hx-disclosure" ) ) . click ( ) ;
41+ const reveal = await driver . findElement ( By . id ( "nav-Guides" ) ) ;
42+ const links = await reveal . findElements ( By . tagName ( 'a' ) ) ;
43+ const text = await util . getElementsText ( links ) ;
44+ testExecutionObject . deepEqual ( text , expected ) ;
3745 } ) ;
3846
3947 /**
@@ -44,15 +52,15 @@ export function suite(browserName: string) {
4452 if ( browserName === "chrome" ) {
4553 test ( "tabs/first" , async testExecutionObject => {
4654 await util . go ( driver , "components/tabs" ) ;
47- await tabTest ( testExecutionObject , snappit , driver , "Cupcake Ipsum" ) ;
55+ await tabTest ( testExecutionObject , driver , "android-desserts-tab-0" , "Cupcake Ipsum" ) ;
4856 } ) ;
4957
5058 test ( "tabs/second" , async testExecutionObject => {
51- await tabTest ( testExecutionObject , snappit , driver , "Biscuit Marshmallow" ) ;
59+ await tabTest ( testExecutionObject , driver , "marshmallow" , "Biscuit Marshmallow" ) ;
5260 } ) ;
5361
5462 test ( "tabs/third" , async testExecutionObject => {
55- await tabTest ( testExecutionObject , snappit , driver , "Caramels Marzipan" ) ;
63+ await tabTest ( testExecutionObject , driver , "android-desserts-tab-2" , "Caramels Marzipan" ) ;
5664 } ) ;
5765 }
5866
0 commit comments