@@ -64,14 +64,12 @@ describe('Jasmine-Specific Features', () => {
6464 await expect ( searchButton ) . withContext ( 'Search button should exist on the homepage' ) . toExist ( )
6565 } )
6666
67- // TODO failing on jasmine.stringContaining not working properly with wdio matchers
68- xit ( 'should use asymmetric matchers in toHaveAttribute' , async ( ) => {
67+ it ( 'should use asymmetric matchers in toHaveAttribute' , async ( ) => {
6968 const docsLink = await $ ( 'a[href="/docs/gettingstarted"]' )
7069 await expect ( docsLink ) . toHaveAttribute ( 'href' , jasmine . stringContaining ( 'docs' ) )
7170 } )
7271
73- // TODO failing on jasmine.stringContaining not working properly with wdio matchers
74- xit ( 'should use asymmetric matchers in toHaveText' , async ( ) => {
72+ it ( 'should use asymmetric matchers in toHaveText' , async ( ) => {
7573 const heading = await $$ ( 'h1' ) [ 1 ]
7674 await expect ( heading ) . toHaveText ( jasmine . stringContaining ( 'Open' ) )
7775 } )
@@ -91,8 +89,7 @@ describe('Jasmine-Specific Features', () => {
9189 } )
9290
9391 describe ( 'Array and collection validation' , ( ) => {
94- // TODO asymmetric matchers are not working properly in this test
95- xit ( 'should validate collections with jasmine matchers' , async ( ) => {
92+ it ( 'should validate collections with jasmine matchers' , async ( ) => {
9693 const navLinks = await $$ ( 'nav a' )
9794 const count = navLinks . length
9895
@@ -117,19 +114,18 @@ describe('Jasmine-Specific Features', () => {
117114 } )
118115 } )
119116
120- // failing on jasmine.stringContaining not working properly with wdio matchers
121117 describe ( 'Browser state validation' , ( ) => {
122- fit ( 'should validate browser properties with asymmetric matchers' , async ( ) => {
118+ it ( 'should validate browser properties with asymmetric matchers' , async ( ) => {
123119 const title = await browser . getTitle ( )
124120 const url = await browser . getUrl ( )
125121
126122 await expect ( title ) . toEqual ( jasmine . stringMatching ( / W e b d r i v e r I O / i) )
127123 await expect ( url ) . toEqual ( jasmine . stringContaining ( 'webdriver.io' ) )
128124
129125 // Combined with WebdriverIO matchers
130- // await expect(browser).toHaveUrl(jasmine.stringContaining('webdriver.io'))
131- // await expect(browser).toHaveTitle(jasmine.stringContaining('WebdriverIO'))
132- // await expect(browser).toHaveUrl(jasmine.stringContaining('WEBDRIVER.io'),{ignoreCase: true})
126+ await expect ( browser ) . toHaveUrl ( jasmine . stringContaining ( 'webdriver.io' ) )
127+ await expect ( browser ) . toHaveTitle ( jasmine . stringContaining ( 'WebdriverIO' ) )
128+ await expect ( browser ) . toHaveUrl ( jasmine . stringContaining ( 'WEBDRIVER.io' ) , { ignoreCase : true } )
133129 await expect ( browser ) . toHaveTitle ( jasmine . stringContaining ( 'WEBDRIVERIO' ) , { ignoreCase : true } )
134130 } )
135131 } )
@@ -148,8 +144,7 @@ describe('Jasmine-Specific Features', () => {
148144 await expect ( size . height ) . toBeGreaterThan ( 0 )
149145 } )
150146
151- // TODO failing with Error: Can't call getText on element with selector ".non-existent-element-xyz" because element wasn't found
152- xit ( 'should validate element attributes' , async ( ) => {
147+ it ( 'should validate element attributes' , async ( ) => {
153148 const searchButton = await $ ( '.DocSearch-Button' )
154149 const classList = await searchButton . getAttribute ( 'class' )
155150
@@ -181,7 +176,7 @@ describe('Jasmine-Specific Features', () => {
181176 } )
182177
183178 describe ( 'Jasmine core matcher use cases with expect' , ( ) => {
184- fit ( 'should use all core Jasmine matchers with expect' , async ( ) => {
179+ it ( 'should use all core Jasmine matchers with expect' , async ( ) => {
185180 const title = await browser . getTitle ( )
186181 const navLinks = await $$ ( 'nav a' )
187182 const count = navLinks . length
0 commit comments