@@ -9,21 +9,21 @@ test.describe('Testing for tabs shortcode', () => {
9
9
} ) ;
10
10
11
11
test ( 'tabs render' , async ( { page } ) => {
12
- const section = await page . getByTestId ( 'tabs-test__basic' ) ;
13
- const tabsContainer = await section . getByTestId ( 'tabs-container' ) ;
14
- const tabLabels = await tabsContainer . getByTestId ( 'tab-labels' ) ;
15
- const tabContents = await tabsContainer . getByTestId ( 'tab-contents' ) ;
12
+ const section = page . getByTestId ( 'tabs-test__basic' ) ;
13
+ const tabsContainer = section . getByTestId ( 'tabs-container' ) ;
14
+ const tabLabels = tabsContainer . getByTestId ( 'tab-labels' ) ;
15
+ const tabContents = tabsContainer . getByTestId ( 'tab-contents' ) ;
16
16
17
17
expect ( await tabsContainer . count ( ) ) . toBeTruthy ( ) ;
18
18
expect ( await tabLabels . count ( ) ) . toBeTruthy ( ) ;
19
19
expect ( await tabContents . count ( ) ) . toBeTruthy ( ) ;
20
20
} ) ;
21
21
22
22
test ( 'tabs shift content when clicked' , async ( { page } ) => {
23
- const section = await page . getByTestId ( 'tabs-test__basic' ) ;
24
- const tabsContainer = await section . getByTestId ( 'tabs-container' ) ;
25
- const tabLabels = await tabsContainer . getByTestId ( 'tab-labels' ) ;
26
- const tabContents = await tabsContainer . getByTestId ( 'tab-contents' ) ;
23
+ const section = page . getByTestId ( 'tabs-test__basic' ) ;
24
+ const tabsContainer = section . getByTestId ( 'tabs-container' ) ;
25
+ const tabLabels = tabsContainer . getByTestId ( 'tab-labels' ) ;
26
+ const tabContents = tabsContainer . getByTestId ( 'tab-contents' ) ;
27
27
28
28
const tabsList = await tabLabels . locator ( 'li' ) . all ( ) ;
29
29
for ( const tab of tabsList ) {
0 commit comments