{"id":3198,"date":"2023-12-05T15:05:32","date_gmt":"2023-12-05T06:05:32","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=3198"},"modified":"2026-03-25T16:31:25","modified_gmt":"2026-03-25T07:31:25","slug":"post-3198","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2023\/12\/05\/post-3198\/","title":{"rendered":"\u6d41\u884c\u308a\u306eChatGPT\u306bWordPress\u306e\u8a18\u4e8b\u751f\u6210\u3092\u3055\u305b\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u6d41\u884c\u308a\u306eChatGPT\u306bWordPress\u306e\u8a18\u4e8b\u751f\u6210\u3092\u3055\u305b\u3066\u307f\u305f<\/h2>\n<h3>ChatGPT\u4f7f\u3063\u3066\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u79c1\u306fWEB\u691c\u7d22\u304b\u3089ChatGPT\u691c\u7d22\u306b\u3060\u3044\u3076\u5909\u308f\u3063\u3066\u304d\u305f\u3068\u5b9f\u611f\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e00\u65e6AI\u306b\u805e\u3044\u3066\u3001\u305d\u308c\u3067\u89e3\u6c7a\u3067\u304d\u306a\u3051\u308c\u3070\u30b0\u30b0\u308b\u3068\u3044\u3046\u884c\u52d5\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f55\u304c\u9055\u3046\u304b\u3068\u8a00\u3048\u3070\u3001\u3084\u306f\u308a\u53cd\u5fdc\u901f\u5ea6\uff01<br \/>\n\u300c\u3042\u308c\u306a\u3093\u3060\u3063\u305f\u3063\u3051\uff1f\u300d\u3068\u3044\u3046\u5185\u5bb9\u306e\u8abf\u3079\u7269\u306b\u306f\u3081\u3063\u307d\u3046\u5f37\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u3093\u306aChatGPT\u3055\u3093\u3092\u4f7f\u3063\u3066\u3001\u4eca\u65e5\u306f\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3061\u3087\u3046\u3069\u4eca\u3084\u3063\u3066\u3044\u308bLaravel \u2715 Cypress \u306eE2E\u30c6\u30b9\u30c8\u306b\u3064\u3044\u3066\u300c\u8a18\u4e8b\u66f8\u3044\u3066\u300d\u3068\u805e\u3044\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u4ee5\u964d\u306f\u305d\u306e\u8a18\u4e8b\u306e\u30b3\u30d4\u30da\u3067\u3059\u3002<\/p>\n<h2>ChatGPT\u3055\u3093\u3068\u306e\u3084\u308a\u53d6\u308a<\/h2>\n<h3>\u30b9\u30cb\u30da\u30c3\u30c8<\/h3>\n<p>Laravel\u3067\u306eCypress\u5229\u7528\u306b\u3064\u3044\u3066WordPress\u7528\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u56de\u7b54<\/h3>\n<p>\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001WordPress\u306b\u76f4\u63a5\u8a18\u4e8b\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u8a18\u4e8b\u306e\u9aa8\u5b50\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u306e\u5185\u5bb9\u3092WordPress\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u3066\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4fee\u6b63\u3057\u3001\u8a18\u4e8b\u3092\u5b8c\u6210\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<p><strong>\u30bf\u30a4\u30c8\u30eb:<\/strong> Laravel\u3067Cypress\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/p>\n<hr \/>\n<p><strong>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/strong><\/p>\n<p>Cypress\u306fE2E\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306e\u5f37\u529b\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308a\u3001Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u4f7f\u7528\u306f\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Cypress\u3092Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u7d71\u5408\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u524d\u63d0\u6761\u4ef6<\/strong><\/p>\n<ul>\n<li>Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<li>Node.js\u3068npm\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<\/ul>\n<p><strong>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong><\/p>\n<p>\u307e\u305a\u3001Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bCypress\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">bash<button class=\"flex gap-1 items-center\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\"><span class=\"hljs-comment\"># Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bCypress\u3092\u8ffd\u52a0<\/span><br \/>\nnpm install cypress --save-dev<br \/>\n<\/code><\/div>\n<\/div>\n<p>Cypress\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">bash<button class=\"flex gap-1 items-center\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">npx cypress open<br \/>\n<\/code><\/div>\n<\/div>\n<p><strong>\u30c6\u30b9\u30c8\u306e\u66f8\u304d\u65b9<\/strong><\/p>\n<p>Cypress\u3092\u4f7f\u7528\u3057\u3066Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">javascript<button class=\"flex gap-1 items-center\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-javascript\"><code class=\"!whitespace-pre hljs language-javascript\"><span class=\"hljs-title function_\">describe<\/span>(<span class=\"hljs-string\">'Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8'<\/span>, <span class=\"hljs-function\">() =&gt;<\/span> {<br \/>\n<span class=\"hljs-title function_\">it<\/span>(<span class=\"hljs-string\">'\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u8868\u793a'<\/span>, <span class=\"hljs-function\">() =&gt;<\/span> {<br \/>\ncy.<span class=\"hljs-title function_\">visit<\/span>(<span class=\"hljs-string\">'\/'<\/span>); <span class=\"hljs-comment\">\/\/ \u30c6\u30b9\u30c8\u5bfe\u8c61\u306eURL\u3092\u6307\u5b9a<\/span><\/code><\/code><span class=\"hljs-comment\">\/\/ \u30da\u30fc\u30b8\u4e0a\u306e\u8981\u7d20\u304c\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u308b\u304b\u3092\u691c\u8a3c<\/span><br \/>\ncy.<span class=\"hljs-title function_\">contains<\/span>(<span class=\"hljs-string\">'Welcome to Laravel'<\/span>);<br \/>\n});<\/p>\n<p><code class=\"!whitespace-pre hljs language-javascript\"><code class=\"!whitespace-pre hljs language-javascript\"><\/code><\/code><span class=\"hljs-title function_\">it<\/span>(<span class=\"hljs-string\">'\u30d5\u30a9\u30fc\u30e0\u306e\u30c6\u30b9\u30c8'<\/span>, <span class=\"hljs-function\">() =&gt;<\/span> {<br \/>\ncy.<span class=\"hljs-title function_\">visit<\/span>(<span class=\"hljs-string\">'\/contact'<\/span>); <span class=\"hljs-comment\">\/\/ \u304a\u554f\u3044\u5408\u308f\u305b\u30da\u30fc\u30b8\u306eURL\u3092\u6307\u5b9a<\/span><\/p>\n<p><code class=\"!whitespace-pre hljs language-javascript\"><code class=\"!whitespace-pre hljs language-javascript\"><\/code><\/code><span class=\"hljs-comment\">\/\/ \u30d5\u30a9\u30fc\u30e0\u306b\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u9001\u4fe1<\/span><br \/>\ncy.<span class=\"hljs-title function_\">get<\/span>(<span class=\"hljs-string\">'input[name=name]'<\/span>).<span class=\"hljs-title function_\">type<\/span>(<span class=\"hljs-string\">'John Doe'<\/span>);<br \/>\ncy.<span class=\"hljs-title function_\">get<\/span>(<span class=\"hljs-string\">'input[name=email]'<\/span>).<span class=\"hljs-title function_\">type<\/span>(<span class=\"hljs-string\">'john@example.com'<\/span>);<br \/>\ncy.<span class=\"hljs-title function_\">get<\/span>(<span class=\"hljs-string\">'textarea[name=message]'<\/span>).<span class=\"hljs-title function_\">type<\/span>(<span class=\"hljs-string\">'\u30c6\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8'<\/span>);<br \/>\ncy.<span class=\"hljs-title function_\">get<\/span>(<span class=\"hljs-string\">'form'<\/span>).<span class=\"hljs-title function_\">submit<\/span>();<\/p>\n<p><code class=\"!whitespace-pre hljs language-javascript\"><code class=\"!whitespace-pre hljs language-javascript\"><\/code><\/code><span class=\"hljs-comment\">\/\/ \u9001\u4fe1\u5f8c\u306e\u6319\u52d5\u3092\u691c\u8a3c<\/span><br \/>\ncy.<span class=\"hljs-title function_\">url<\/span>().<span class=\"hljs-title function_\">should<\/span>(<span class=\"hljs-string\">'include'<\/span>, <span class=\"hljs-string\">'\/thank-you'<\/span>);<br \/>\n});<br \/>\n});<\/p>\n<\/div>\n<\/div>\n<p><strong>\u30c6\u30b9\u30c8\u5b9f\u884c\u3068\u7d50\u679c\u306e\u89e3\u91c8<\/strong><\/p>\n<p>Cypress\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"bg-black rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md\">bash<button class=\"flex gap-1 items-center\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">npx cypress run<br \/>\n<\/code><\/div>\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8868\u793a\u3055\u308c\u3001\u30c6\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u30b0\u30ea\u30fc\u30f3\u3001\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u30ec\u30c3\u30c9\u306e\u8868\u793a\u3068\u306a\u308a\u307e\u3059\u3002\u30c6\u30b9\u30c8\u306e\u8a73\u7d30\u306a\u30ed\u30b0\u3084\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3082\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u53c2\u8003\u30ea\u30bd\u30fc\u30b9<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/docs.cypress.io\/guides\/overview\/why-cypress\" target=\"_new\" rel=\"noopener\">Cypress\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/laravel.com\/docs\" target=\"_new\" rel=\"noopener\">Laravel\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/li>\n<\/ul>\n<p><strong>\u7d50\u8ad6<\/strong><\/p>\n<p>Cypress\u306f\u3001Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3044\u3066E2E\u30c6\u30b9\u30c8\u3092\u52b9\u679c\u7684\u306b\u884c\u3046\u305f\u3081\u306e\u512a\u308c\u305f\u30c4\u30fc\u30eb\u3067\u3059\u3002\u662f\u975e\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<p>\u3053\u306e\u9aa8\u5b50\u3092\u4f7f\u3063\u3066\u3001\u8a18\u4e8b\u3092\u5b8c\u6210\u3055\u305b\u308b\u969b\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u8aad\u307f\u624b\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306e\u8aac\u660e\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u5b9f\u9a13\u3092\u7d4c\u3066\u306e\u611f\u60f3<\/h2>\n<p>\u306a\u308b\u307b\u3069\u3001\u3069\u3046\u66f8\u3044\u3066\u3044\u3051\u3070\u3088\u3044\u304b\u306e\u9aa8\u5b50(\u6307\u91dd)\u3092\u51fa\u3057\u3066\u304f\u308c\u3001\u3042\u308b\u7a0b\u5ea6\u30b3\u30fc\u30c9\u306e\u63d0\u4f9b\u307e\u3067\u3057\u3066\u304f\u308c\u308b\u3068\u3002<br \/>\n\u306a\u304b\u306a\u304b\u4fbf\u5229\u3060\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u7279\u306b\u3001\u30b3\u30fc\u30c9\u306e\u63d0\u4f9b\u306f\u81ea\u5206\u304c\u60a9\u3093\u3060\u3068\u3053\u308d\u3092\u53c2\u753b\u6848\u4ef6\u306e\u5f15\u6570\u306a\u3069\u3092\u9069\u5f53\u306b\u5909\u66f4\u3057\u3066\u63d0\u4f9b\u3057\u3066\u3082\u3089\u3048\u3070\u304b\u306a\u308a\u624b\u9593\u304c\u7701\u3051\u308b\u3068\u611f\u3058\u307e\u3059\u3002<br \/>\n\u3046\u301c\u3093\u3001\u3084\u3063\u3071\u4fbf\u5229\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d41\u884c\u308a\u306eChatGPT\u306bWordPress\u306e\u8a18\u4e8b\u751f\u6210\u3092\u3055\u305b\u3066\u307f\u305f ChatGPT\u4f7f\u3063\u3066\u307e\u3059\u304b\uff1f \u79c1\u306fWEB\u691c\u7d22\u304b\u3089ChatGPT\u691c\u7d22\u306b\u3060\u3044\u3076\u5909\u308f\u3063\u3066\u304d\u305f\u3068\u5b9f\u611f\u3057\u3066\u3044\u307e\u3059\u3002 \u4e00\u65e6AI\u306b\u805e\u3044\u3066\u3001\u305d\u308c\u3067\u89e3\u6c7a\u3067\u304d\u306a\u3051\u308c\u3070\u30b0\u30b0\u308b\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[17],"tags":[1150,147,247,1151],"class_list":["post-3198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-soliloquy","tag-chatgpt","tag-python","tag-247","tag-1151"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/qol-kk.com\/wp2\/wp-content\/uploads\/2023\/12\/chat_gpt.png?fit=1912%2C1001&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=3198"}],"version-history":[{"count":2,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3198\/revisions"}],"predecessor-version":[{"id":3214,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3198\/revisions\/3214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/3199"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=3198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=3198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=3198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}