Liferay.Loader.define("@liferay/analytics-settings-web@5.0.51/js/components/connect/__tests__/DisconnectModal.spec",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/modal","@liferay!analytics-settings-web$testing-library/jest-dom/extend-expect","@liferay!analytics-settings-web$testing-library/react","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{var n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),c=_interopRequireDefault(a("@frontend-taglib-clay$clayui/modal"));a("@liferay!analytics-settings-web$testing-library/jest-dom/extend-expect");var l=a("@liferay!analytics-settings-web$testing-library/react"),r=_interopRequireDefault(a("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const Component=()=>r.default.createElement(r.default.Fragment,null,r.default.createElement(c.default.Header,null,Liferay.Language.get("disconnecting-data-source")),r.default.createElement(c.default.Body,null,r.default.createElement("p",null,r.default.createElement("strong",null,Liferay.Language.get("are-you-sure-you-want-to-disconnect-your-analytics-cloud-workspace-from-this-dxp-instance"))),r.default.createElement("p",{className:"text-secondary"},Liferay.Language.get("this-will-stop-any-syncing-of-analytics-or-contact-data-to-your-analytics-cloud-workspace"))),r.default.createElement(c.default.Footer,{last:r.default.createElement(n.default.Group,{spaced:!0},r.default.createElement(n.default,{displayType:"secondary"},Liferay.Language.get("cancel")),r.default.createElement(n.default,{displayType:"warning",onClick:()=>{}},Liferay.Language.get("disconnect")))}));describe("Disconnect Modal",(()=>{it("render Disconnect Modal without crashing",(()=>{(0,l.render)(r.default.createElement(Component,null)),expect(l.screen.getByText(/disconnecting-data-source/i)).toBeInTheDocument(),expect(l.screen.getByText("are-you-sure-you-want-to-disconnect-your-analytics-cloud-workspace-from-this-dxp-instance")).toBeInTheDocument(),expect(l.screen.getByText("this-will-stop-any-syncing-of-analytics-or-contact-data-to-your-analytics-cloud-workspace")).toBeInTheDocument(),expect(l.screen.getByRole("button",{name:/cancel/i})).toBeInTheDocument(),expect(l.screen.getByRole("button",{name:/disconnect/i})).toBeInTheDocument()}))}))}}));
//# sourceMappingURL=DisconnectModal.spec.js.map