mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
tests
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<ActionBar title="BottomNavigation font icons" icon="" class="action-bar">
|
||||
</ActionBar>
|
||||
|
||||
<BottomNavigation class="font-awesome"> <!-- TODO: The font-awesome class here should be removed -->
|
||||
<BottomNavigation class="font-awesome" automationText="bottomNavigation" > <!-- TODO: The font-awesome class here should be removed -->
|
||||
<TabStrip>
|
||||
<!-- font family + font size + color -->
|
||||
<TabStripItem title="First" iconSource="font://" class="special font-awesome font-size color"></TabStripItem>
|
||||
|
||||
@@ -210,6 +210,22 @@ describe(`${suite}-${spec}-suite`, async function () {
|
||||
await bottomNavigationBasePage.navigateBackToSuitMainPage();
|
||||
});
|
||||
|
||||
it(`${spec}-font-icons`, async function () {
|
||||
await bottomNavigationBasePage.navigateToSample("font-icons");
|
||||
await bottomNavigationBasePage.refreshBottomNavigationTab();
|
||||
await driver.imageHelper.compareScreen();
|
||||
|
||||
await bottomNavigationBasePage.tabOnItem(1);
|
||||
await driver.imageHelper.compareScreen();
|
||||
|
||||
await bottomNavigationBasePage.tabOnItem(2);
|
||||
await driver.imageHelper.compareScreen();
|
||||
|
||||
assert.isTrue(driver.imageHelper.hasImageComparisonPassed());
|
||||
|
||||
await bottomNavigationBasePage.navigateBackToSuitMainPage();
|
||||
});
|
||||
|
||||
it(`${spec}-icon-change`, async function () {
|
||||
await bottomNavigationBasePage.navigateToSample("icon-change");
|
||||
await bottomNavigationBasePage.refreshBottomNavigationTab();
|
||||
|
||||
Reference in New Issue
Block a user