Skip to content

Commit 2f857fa

Browse files
committed
test(searchbar): update snapshots
1 parent 37d101e commit 2f857fa

18 files changed

+6
-8
lines changed

core/src/components/searchbar/searchbar.ionic.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
*/
9090
@include globals.position(0, null, null, 9px);
9191

92+
background-color: transparent;
93+
9294
font-size: globals.$ionic-font-size-400;
9395
}
9496

core/src/components/searchbar/test/basic/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@
1616
<style>
1717
/* Remove the border that is added through the testing styling */
1818
ion-searchbar button {
19-
background: initial;
2019
border: none;
2120
}
2221
</style>
2322
</head>
2423

2524
<body>
25+
<ion-searchbar show-cancel-button="always" show-clear-button="always"></ion-searchbar>
2626
<ion-app>
27-
<ion-header>
28-
<ion-toolbar>
29-
<ion-title>Searchbar - Basic</ion-title>
30-
</ion-toolbar>
31-
</ion-header>
3227

3328
<ion-content id="content">
3429
<h5 class="ion-padding-start ion-padding-top">Search - Default</h5>
30+
<ion-searchbar show-cancel-button="always" show-clear-button="always"></ion-searchbar>
3531
<ion-searchbar id="basic" value="test" type="tel" show-cancel-button="focus" debounce="500"> </ion-searchbar>
3632

3733
<h5 class="ion-padding-start ion-padding-top">Search - Always Show Cancel Button</h5>

core/src/components/searchbar/test/basic/searchbar.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
9595
});
9696
});
9797

98-
configs().forEach(({ title, screenshot, config }) => {
98+
configs({ modes: ['md', 'ios', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
9999
test.describe(title('searchbar: rendering'), () => {
100100
test('should render searchbar', async ({ page }) => {
101101
await page.setContent(
@@ -199,7 +199,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
199199
});
200200
});
201201

202-
configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
202+
configs({ modes: ['md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
203203
test.describe(title('searchbar: cancel button alignment'), () => {
204204
test('should align with the back button when used in a toolbar', async ({ page }, testInfo) => {
205205
testInfo.annotations.push({
Loading
Loading
Loading
1.72 KB
Loading
2.05 KB
Loading
1.69 KB
Loading
1.7 KB
Loading

0 commit comments

Comments
 (0)