Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

599 B
Raw Blame
FactoryBot.define do
  factory :my_page, class: "Grids::MyPage" do
    user
    row_count { 7 }
    column_count { 4 }
    widgets do
      [
        Grids::Widget.new(
          identifier: "news",
          start_row: 1,
          end_row: 7,
          start_column: 1,
          end_column: 3
        ),
        Grids::Widget.new(
          identifier: "documents",
          start_row: 1,
          end_row: 7,
          start_column: 3,
          end_column: 5
        )
      ]
    end

    trait :empty do
      widgets { [] }
      row_count { 1 }
      column_count { 1 }
    end
  end
end