This commit is contained in:
SvetoslavTsenov
2019-07-09 15:06:47 +03:00
parent c58974c5cd
commit eaf930f197
3 changed files with 7 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
"--colors",
"--opts",
"../config/mocha.opts",
"--grep=button",
"--grep=bottom-navigation",
"-a",
],
"internalConsoleOptions": "openOnSessionStart",

View File

@@ -33,7 +33,7 @@ export class BottomNavigationBasePage extends PageObjectBaseModel {
for (let index = 0; index < this._bottomNavigationItems.length; index++) {
const point = await this._bottomNavigationItems[index].getRectangle();
this._bottomNavigationItemsRects.set(index, new Point(point.y + point.width / 2, point.x + point.height / 2));
this._bottomNavigationItemsRects.set(index, new Point(point.x + point.width / 2, point.y + point.height / 2));
}
this._bottomNavigatioinTabRect = await bottomNavigatioinTab.getRectangle();

View File

@@ -17,6 +17,7 @@ describe(`${suite}-${spec}-suite`, async function () {
await driver.restartApp();
bottomNavigationBasePage = new BottomNavigationBasePage(driver);
await bottomNavigationBasePage.initSuite();
driver.imageHelper.options.keepOriginalImageSize = true;
});
after(async function () {
@@ -56,6 +57,8 @@ describe(`${suite}-${spec}-suite`, async function () {
* Bug
*/
it(`${spec}-binding-add-items`, async function () {
this.skip();
await bottomNavigationBasePage.navigateToSample("binding");
await driver.imageHelper.compareScreen();
@@ -84,6 +87,8 @@ describe(`${suite}-${spec}-suite`, async function () {
* Bug
*/
it(`${spec}-binding-remove-items`, async function () {
this.skip();
await bottomNavigationBasePage.navigateToSample("binding");
await driver.imageHelper.compareScreen();