mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(action-bar-ios): navigation button support for font icons (#7918)
This commit is contained in:
@@ -59,14 +59,11 @@ describe(`${suite}-${spec}-suite`, async function () {
|
||||
if (driver.isIOS && imageName.includes("android")) {
|
||||
this.skip();
|
||||
}
|
||||
if (driver.platformName === Platform.ANDROID
|
||||
&& (sample.sample.toLowerCase() === "all" || sample.sample.toLowerCase() === "reset")) {
|
||||
await driver.scroll(Direction.down, 400, 200, 300, 200);
|
||||
await driver.scroll(Direction.down, 400, 200, 300, 200);
|
||||
await driver.scroll(Direction.down, 400, 200, 300, 200);
|
||||
|
||||
let scenarioBtn = await driver.waitForElement(sample.sample);
|
||||
if (!scenarioBtn) {
|
||||
await driver.scroll(Direction.up, 400, 200, 300, 200);
|
||||
scenarioBtn = await driver.waitForElement(sample.sample);
|
||||
}
|
||||
const scenarioBtn = await driver.waitForElement(sample.sample);
|
||||
await scenarioBtn.click();
|
||||
imageName = setImageName(suite, spec, imageName);
|
||||
await driver.imageHelper.compareScreen({ imageName: imageName, timeOutSeconds: 5, tolerance: 0, toleranceType: ImageOptions.pixel });
|
||||
|
||||
Reference in New Issue
Block a user