-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
caught-by-playwrightPlaywright tests have caught the bug.Playwright tests have caught the bug.
Description
Problem
When an API response contains showThumbsUpToastr: true or noticeCode: "thumbs_up", the axios interceptor fires:
Toastr.success("", { icon: "👍", className: "w-20" })The customConfig { icon: "👍", className: "w-20" } is parsed to the Toast config:
const config = {
...TOAST_CONFIG, // className: "neeto-ui-toastr"
...customConfig, // className: "w-20" overwrites
};Issue: The resulting DOM element has className="w-20" but not className="neeto-ui-toastr", causing test failures for verifyToast in NeetoPlaywrightCommons (which expects the default class).
Solution
Fix the merging logic so that className is always merged (default + custom), not overwritten.
This ensures all Toast DOM elements retain the required neeto-ui-toastr class even when given custom className.
caught-by-playwright _t
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
caught-by-playwrightPlaywright tests have caught the bug.Playwright tests have caught the bug.