[Test] Hopefully fixed salesman ME flaky test (#6298)

This commit is contained in:
Bertie690 2025-08-19 20:43:39 -04:00 committed by GitHub
parent 8734062401
commit 545d7349dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
]);
const { title, description, query } = dialogue.encounterOptionsDialogue!;
expect(title).toBe(`${namespace}:title`);
expect(description).toMatch(new RegExp(`^${namespace}\\:description(_shiny)?$`));
expect(description).toMatch(new RegExp(`^${namespace}\\:description(Shiny)?$`));
expect(query).toBe(`${namespace}:query`);
expect(options.length).toBe(2);
});
@ -117,7 +117,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
expect(dialogue).toBeDefined();
expect(dialogue).toStrictEqual({
buttonLabel: `${namespace}:option.1.label`,
buttonTooltip: expect.stringMatching(new RegExp(`^${namespace}\\:option\\.1\\.tooltip(_shiny)?$`)),
buttonTooltip: expect.stringMatching(new RegExp(`^${namespace}\\:option\\.1\\.tooltip(Shiny)?$`)),
selected: [
{
text: `${namespace}:option.1.selectedMessage`,