mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
[Test] Hopefully fixed salesman ME flaky test (#6298)
This commit is contained in:
parent
8734062401
commit
545d7349dc
@ -71,7 +71,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
|
|||||||
]);
|
]);
|
||||||
const { title, description, query } = dialogue.encounterOptionsDialogue!;
|
const { title, description, query } = dialogue.encounterOptionsDialogue!;
|
||||||
expect(title).toBe(`${namespace}:title`);
|
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(query).toBe(`${namespace}:query`);
|
||||||
expect(options.length).toBe(2);
|
expect(options.length).toBe(2);
|
||||||
});
|
});
|
||||||
@ -117,7 +117,7 @@ describe("The Pokemon Salesman - Mystery Encounter", () => {
|
|||||||
expect(dialogue).toBeDefined();
|
expect(dialogue).toBeDefined();
|
||||||
expect(dialogue).toStrictEqual({
|
expect(dialogue).toStrictEqual({
|
||||||
buttonLabel: `${namespace}:option.1.label`,
|
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: [
|
selected: [
|
||||||
{
|
{
|
||||||
text: `${namespace}:option.1.selectedMessage`,
|
text: `${namespace}:option.1.selectedMessage`,
|
||||||
|
Loading…
Reference in New Issue
Block a user