# frozen_string_literal: true
Fabricator(:ai_artifact) do
  user
  post
  name { sequence(:name) { |i| "artifact_#{i}" } }
  html { "<div>Test Content</div>" }
  css { ".test { color: blue; }" }
  js { "console.log('test');" }
  metadata { { public: false } }
end

Fabricator(:ai_artifact_version) do
  ai_artifact
  version_number { sequence(:version_number) { |i| i } }
  html { "<div>Version Content</div>" }
  css { ".version { color: red; }" }
  js { "console.log('version');" }
  change_description { "Test change" }
end
