add retries to quick-draw tests
This commit is contained in:
parent
3e6183cd50
commit
6cbf73281c
|
@ -52,7 +52,7 @@ describe("Abilities - Quick Draw", () => {
|
|||
expect(pokemon.battleData.abilitiesApplied).contain(Abilities.QUICK_DRAW);
|
||||
}, 20000);
|
||||
|
||||
test("does not triggered by non damage moves", async () => {
|
||||
test("does not triggered by non damage moves", { timeout: 20000, retry: 5 }, async () => {
|
||||
await game.startBattle([Species.SLOWBRO]);
|
||||
|
||||
const pokemon = game.scene.getPlayerPokemon();
|
||||
|
@ -67,7 +67,7 @@ describe("Abilities - Quick Draw", () => {
|
|||
expect(pokemon.isFainted()).toBe(true);
|
||||
expect(enemy.isFainted()).toBe(false);
|
||||
expect(pokemon.battleData.abilitiesApplied).not.contain(Abilities.QUICK_DRAW);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
test("does not increase priority", async () => {
|
||||
vi.spyOn(Overrides, "OPP_MOVESET_OVERRIDE", "get").mockReturnValue(Array(4).fill(Moves.EXTREME_SPEED));
|
||||
|
|
Loading…
Reference in New Issue