Merge pull request #4211 from ben-lear/mystery-encounters
disable Uncommon Breed tests
This commit is contained in:
commit
ab4e9d69ff
|
@ -24,15 +24,14 @@ import { StatStageChangePhase } from "#app/phases/stat-stage-change-phase";
|
||||||
import { Stat } from "#enums/stat";
|
import { Stat } from "#enums/stat";
|
||||||
import { BerryModifier } from "#app/modifier/modifier";
|
import { BerryModifier } from "#app/modifier/modifier";
|
||||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||||
import * as TextUtils from "#app/ui/text";
|
|
||||||
import BBCodeText from "phaser3-rex-plugins/plugins/bbcodetext";
|
|
||||||
|
|
||||||
const namespace = "mysteryEncounter:uncommonBreed";
|
const namespace = "mysteryEncounter:uncommonBreed";
|
||||||
const defaultParty = [Species.LAPRAS, Species.GENGAR, Species.ABRA];
|
const defaultParty = [Species.LAPRAS, Species.GENGAR, Species.ABRA];
|
||||||
const defaultBiome = Biome.CAVE;
|
const defaultBiome = Biome.CAVE;
|
||||||
const defaultWave = 45;
|
const defaultWave = 45;
|
||||||
|
|
||||||
describe("Uncommon Breed - Mystery Encounter", () => {
|
// TODO: there is some severe test flakiness occurring for this file, needs to be looked at/addressed in separate issue
|
||||||
|
describe.skip("Uncommon Breed - Mystery Encounter", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
let game: GameManager;
|
let game: GameManager;
|
||||||
let scene: BattleScene;
|
let scene: BattleScene;
|
||||||
|
@ -170,9 +169,6 @@ describe("Uncommon Breed - Mystery Encounter", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should NOT be selectable if the player doesn't have enough berries", async () => {
|
it("should NOT be selectable if the player doesn't have enough berries", async () => {
|
||||||
// For some reason, BBCodeText has issues with this test
|
|
||||||
vi.spyOn(TextUtils, "addBBCodeTextObject").mockImplementation(() => new BBCodeText(scene, 0, 0, "test"));
|
|
||||||
|
|
||||||
await game.runToMysteryEncounter(MysteryEncounterType.UNCOMMON_BREED, defaultParty);
|
await game.runToMysteryEncounter(MysteryEncounterType.UNCOMMON_BREED, defaultParty);
|
||||||
// Clear out any pesky mods that slipped through test spin-up
|
// Clear out any pesky mods that slipped through test spin-up
|
||||||
scene.modifiers.forEach(mod => {
|
scene.modifiers.forEach(mod => {
|
||||||
|
|
Loading…
Reference in New Issue