You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: destroy_modal.rb
    path of file: ./repos/openproject/spec/support/components/work_packages
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 20
    
      def expect_listed(*wps)
        page.within(container) do
          if wps.length == 1
            wp = wps.first
            expect(page).to have_css('strong', text: "#{wp.subject} ##{wp.id}")
          else
            expect(page).to have_css('.danger-zone--warning',
                                     text: 'Are you sure you want to delete the following work packages?')
            wps.each do |wp|
              expect(page).to have_css('li', text: "##{wp.id} #{wp.subject}")
            end
          end
        end