Merge pull request #4211 from ben-lear/mystery-encounters

disable Uncommon Breed tests
This commit is contained in:
ImperialSympathizer 2024-09-13 09:32:45 -04:00 committed by GitHub
commit ab4e9d69ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -24,15 +24,14 @@ import { StatStageChangePhase } from "#app/phases/stat-stage-change-phase";
import { Stat } from "#enums/stat";
import { BerryModifier } from "#app/modifier/modifier";
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 defaultParty = [Species.LAPRAS, Species.GENGAR, Species.ABRA];
const defaultBiome = Biome.CAVE;
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 game: GameManager;
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 () => {
// 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);
// Clear out any pesky mods that slipped through test spin-up
scene.modifiers.forEach(mod => {