Skip to content

Commit 27824bb

Browse files
remove deep selector
1 parent 3ea9a46 commit 27824bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ionic-react/src/App.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { render } from '@testing-library/react';
44
import App from './App';
55

66
async function getVisiblePage () {
7-
return $$('>>>.container').find((page) => page.isDisplayed());
7+
return $$('.container').find((page) => page.isDisplayed());
88
}
99

1010
describe('App', () => {
@@ -15,7 +15,7 @@ describe('App', () => {
1515

1616
it('should be able to navigate to other tabs', async () => {
1717
const { baseElement } = render(<App />);
18-
const navLinks = await $(baseElement).$$('>>>ion-label');
18+
const navLinks = await $(baseElement).$$('ion-label');
1919
await navLinks[0].click();
2020

2121
await expect(await getVisiblePage()).toHaveText(

lit-typescript-vite/src/tests/my-element.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Lit component testing', () => {
1010
document.body
1111
)
1212

13-
const button = await $('my-element').$('>>>button')
13+
const button = await $('my-element').$('button')
1414
await expect(button).toHaveText('count is 0')
1515

1616
await button.click()

stencil-component-starter/src/components/my-component/my-component.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('my-component', () => {
1414

1515
const component = $('my-component')
1616
await expect(component).toHaveText(`Hello, World! I'm Stencil 'Don't call me a framework' JS`)
17-
await expect((await $('>>>span').getCSSProperty('font-weight')).value).toBe(700)
17+
await expect((await $('span').getCSSProperty('font-weight')).value).toBe(700)
1818
});
1919

2020
it('looks visually perfect', async () => {

0 commit comments

Comments
 (0)