Skip to content

Commit 2c3ecfc

Browse files
tests
1 parent 34b9434 commit 2c3ecfc

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

e2e/ui-tests-app/app/bottom-navigation/font-icons-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ActionBar title="BottomNavigation font icons" icon="" class="action-bar">
44
</ActionBar>
55

6-
<BottomNavigation class="font-awesome"> <!-- TODO: The font-awesome class here should be removed -->
6+
<BottomNavigation class="font-awesome" automationText="bottomNavigation" > <!-- TODO: The font-awesome class here should be removed -->
77
<TabStrip>
88
<!-- font family + font size + color -->
99
<TabStripItem title="First" iconSource="font://&#xF10B;" class="special font-awesome font-size color"></TabStripItem>

e2e/ui-tests-app/e2e/suites/tab-navigation/bottom-navigation/bottom-navigation.e2e-spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,22 @@ describe(`${suite}-${spec}-suite`, async function () {
210210
await bottomNavigationBasePage.navigateBackToSuitMainPage();
211211
});
212212

213+
it(`${spec}-font-icons`, async function () {
214+
await bottomNavigationBasePage.navigateToSample("font-icons");
215+
await bottomNavigationBasePage.refreshBottomNavigationTab();
216+
await driver.imageHelper.compareScreen();
217+
218+
await bottomNavigationBasePage.tabOnItem(1);
219+
await driver.imageHelper.compareScreen();
220+
221+
await bottomNavigationBasePage.tabOnItem(2);
222+
await driver.imageHelper.compareScreen();
223+
224+
assert.isTrue(driver.imageHelper.hasImageComparisonPassed());
225+
226+
await bottomNavigationBasePage.navigateBackToSuitMainPage();
227+
});
228+
213229
it(`${spec}-icon-change`, async function () {
214230
await bottomNavigationBasePage.navigateToSample("icon-change");
215231
await bottomNavigationBasePage.refreshBottomNavigationTab();

0 commit comments

Comments
 (0)