mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: temporarily disable e2e tests with mixed animation nav (#6720)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { AppiumDriver, createDriver } from "nativescript-dev-appium";
|
import { AppiumDriver, createDriver } from "nativescript-dev-appium";
|
||||||
|
|
||||||
import { Screen, playersData, home, somePage, otherPage, teamsData } from "./screen";
|
import { Screen, playersData, home, somePage, otherPage, teamsData } from "./screen";
|
||||||
import * as shared from "./shared.e2e-spec";
|
import * as shared from "./shared.e2e-spec";
|
||||||
import { suspendTime, appSuspendResume, dontKeepActivities, transitions } from "./config";
|
import { suspendTime, appSuspendResume, dontKeepActivities, transitions } from "./config";
|
||||||
@@ -261,223 +262,223 @@ describe("layout-root:", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("players list slide transition with parent frame default transition:", () => {
|
// describe("players list slide transition with parent frame default transition:", () => {
|
||||||
const playerOne = playersData["playerOneSlide"];
|
// const playerOne = playersData["playerOneSlide"];
|
||||||
const playerTwo = playersData["playerTwoSlide"];
|
// const playerTwo = playersData["playerTwoSlide"];
|
||||||
|
|
||||||
it("loaded layout root with nested frames", async () => {
|
// it("loaded layout root with nested frames", async () => {
|
||||||
await screen.navigateToLayoutWithFrame();
|
// await screen.navigateToLayoutWithFrame();
|
||||||
await screen.loadedLayoutWithFrame();
|
// await screen.loadedLayoutWithFrame();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded players list", async () => {
|
// it("loaded players list", async () => {
|
||||||
await screen.loadedPlayersList();
|
// await screen.loadedPlayersList();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player details with slide", async () => {
|
// it("loaded player details with slide", async () => {
|
||||||
await shared.testPlayerNavigated(playerTwo, screen);
|
// await shared.testPlayerNavigated(playerTwo, screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("navigate parent frame and go back", async () => {
|
// it("navigate parent frame and go back", async () => {
|
||||||
await shared.testSomePageNavigatedDefault(screen);
|
// await shared.testSomePageNavigatedDefault(screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(somePage); // wait for some page
|
// await driver.waitForElement(somePage); // wait for some page
|
||||||
}
|
// }
|
||||||
|
|
||||||
await driver.navBack(); // some page back navigation
|
// await driver.navBack(); // some page back navigation
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
|
|
||||||
await screen.loadedPlayerDetails(playerTwo);
|
// await screen.loadedPlayerDetails(playerTwo);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player list", async () => {
|
// it("loaded player list", async () => {
|
||||||
await screen.goBackToPlayersList();
|
// await screen.goBackToPlayersList();
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerOne.name); // wait for players list
|
// await driver.waitForElement(playerOne.name); // wait for players list
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded home page again", async () => {
|
// it("loaded home page again", async () => {
|
||||||
await screen.resetToHome();
|
// await screen.resetToHome();
|
||||||
await screen.loadedHome();
|
// await screen.loadedHome();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
describe("players list slide transition with parent frame no transition:", () => {
|
// describe("players list slide transition with parent frame no transition:", () => {
|
||||||
const playerOne = playersData["playerOneSlide"];
|
// const playerOne = playersData["playerOneSlide"];
|
||||||
const playerTwo = playersData["playerTwoSlide"];
|
// const playerTwo = playersData["playerTwoSlide"];
|
||||||
|
|
||||||
it("loaded layout root with nested frames", async () => {
|
// it("loaded layout root with nested frames", async () => {
|
||||||
await screen.navigateToLayoutWithFrame();
|
// await screen.navigateToLayoutWithFrame();
|
||||||
await screen.loadedLayoutWithFrame();
|
// await screen.loadedLayoutWithFrame();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded players list", async () => {
|
// it("loaded players list", async () => {
|
||||||
await screen.loadedPlayersList();
|
// await screen.loadedPlayersList();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player details with slide", async () => {
|
// it("loaded player details with slide", async () => {
|
||||||
await shared.testPlayerNavigated(playerTwo, screen);
|
// await shared.testPlayerNavigated(playerTwo, screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("navigate parent frame and go back", async () => {
|
// it("navigate parent frame and go back", async () => {
|
||||||
await shared.testSomePageNavigatedNone(screen);
|
// await shared.testSomePageNavigatedNone(screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(somePage); // wait for some page
|
// await driver.waitForElement(somePage); // wait for some page
|
||||||
}
|
// }
|
||||||
|
|
||||||
await driver.navBack(); // some page back navigation
|
// await driver.navBack(); // some page back navigation
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
|
|
||||||
await screen.loadedPlayerDetails(playerTwo);
|
// await screen.loadedPlayerDetails(playerTwo);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player list", async () => {
|
// it("loaded player list", async () => {
|
||||||
await screen.goBackToPlayersList();
|
// await screen.goBackToPlayersList();
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerOne.name); // wait for players list
|
// await driver.waitForElement(playerOne.name); // wait for players list
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded home page again", async () => {
|
// it("loaded home page again", async () => {
|
||||||
await screen.resetToHome();
|
// await screen.resetToHome();
|
||||||
await screen.loadedHome();
|
// await screen.loadedHome();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
describe("players list flip transition with parent frame default transition:", () => {
|
// describe("players list flip transition with parent frame default transition:", () => {
|
||||||
const playerOne = playersData["playerOneFlip"];
|
// const playerOne = playersData["playerOneFlip"];
|
||||||
const playerTwo = playersData["playerTwoFlip"];
|
// const playerTwo = playersData["playerTwoFlip"];
|
||||||
|
|
||||||
it("loaded layout root with nested frames", async () => {
|
// it("loaded layout root with nested frames", async () => {
|
||||||
await screen.navigateToLayoutWithFrame();
|
// await screen.navigateToLayoutWithFrame();
|
||||||
await screen.loadedLayoutWithFrame();
|
// await screen.loadedLayoutWithFrame();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded players list", async () => {
|
// it("loaded players list", async () => {
|
||||||
await screen.loadedPlayersList();
|
// await screen.loadedPlayersList();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player details with slide", async () => {
|
// it("loaded player details with slide", async () => {
|
||||||
await shared.testPlayerNavigated(playerTwo, screen);
|
// await shared.testPlayerNavigated(playerTwo, screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("navigate parent frame and go back", async () => {
|
// it("navigate parent frame and go back", async () => {
|
||||||
await shared.testSomePageNavigatedDefault(screen);
|
// await shared.testSomePageNavigatedDefault(screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(somePage); // wait for some page
|
// await driver.waitForElement(somePage); // wait for some page
|
||||||
}
|
// }
|
||||||
|
|
||||||
await driver.navBack(); // some page back navigation
|
// await driver.navBack(); // some page back navigation
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
|
|
||||||
await screen.loadedPlayerDetails(playerTwo);
|
// await screen.loadedPlayerDetails(playerTwo);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player list", async () => {
|
// it("loaded player list", async () => {
|
||||||
await screen.goBackToPlayersList();
|
// await screen.goBackToPlayersList();
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerOne.name); // wait for players list
|
// await driver.waitForElement(playerOne.name); // wait for players list
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded home page again", async () => {
|
// it("loaded home page again", async () => {
|
||||||
await screen.resetToHome();
|
// await screen.resetToHome();
|
||||||
await screen.loadedHome();
|
// await screen.loadedHome();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
describe("players list flip transition with parent frame no transition:", () => {
|
// describe("players list flip transition with parent frame no transition:", () => {
|
||||||
const playerOne = playersData["playerOneFlip"];
|
// const playerOne = playersData["playerOneFlip"];
|
||||||
const playerTwo = playersData["playerTwoFlip"];
|
// const playerTwo = playersData["playerTwoFlip"];
|
||||||
|
|
||||||
it("loaded layout root with nested frames", async () => {
|
// it("loaded layout root with nested frames", async () => {
|
||||||
await screen.navigateToLayoutWithFrame();
|
// await screen.navigateToLayoutWithFrame();
|
||||||
await screen.loadedLayoutWithFrame();
|
// await screen.loadedLayoutWithFrame();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded players list", async () => {
|
// it("loaded players list", async () => {
|
||||||
await screen.loadedPlayersList();
|
// await screen.loadedPlayersList();
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player details with slide", async () => {
|
// it("loaded player details with slide", async () => {
|
||||||
await shared.testPlayerNavigated(playerTwo, screen);
|
// await shared.testPlayerNavigated(playerTwo, screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("navigate parent frame and go back", async () => {
|
// it("navigate parent frame and go back", async () => {
|
||||||
await shared.testSomePageNavigatedNone(screen);
|
// await shared.testSomePageNavigatedNone(screen);
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(somePage); // wait for some page
|
// await driver.waitForElement(somePage); // wait for some page
|
||||||
}
|
// }
|
||||||
|
|
||||||
await driver.navBack(); // some page back navigation
|
// await driver.navBack(); // some page back navigation
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerTwo.name); // wait for player
|
// await driver.waitForElement(playerTwo.name); // wait for player
|
||||||
}
|
// }
|
||||||
|
|
||||||
await screen.loadedPlayerDetails(playerTwo);
|
// await screen.loadedPlayerDetails(playerTwo);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded player list", async () => {
|
// it("loaded player list", async () => {
|
||||||
await screen.goBackToPlayersList();
|
// await screen.goBackToPlayersList();
|
||||||
|
|
||||||
if (appSuspendResume) {
|
// if (appSuspendResume) {
|
||||||
await driver.backgroundApp(suspendTime);
|
// await driver.backgroundApp(suspendTime);
|
||||||
await driver.waitForElement(playerOne.name); // wait for players list
|
// await driver.waitForElement(playerOne.name); // wait for players list
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("loaded home page again", async () => {
|
// it("loaded home page again", async () => {
|
||||||
await screen.resetToHome();
|
// await screen.resetToHome();
|
||||||
await screen.loadedHome();
|
// await screen.loadedHome();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user