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: notifications.rb
    path of file: ./repos/consuldemocracy/spec/support/common_actions
    
    the code of the file until where you have to start completion: module Notifications
  def click_notifications_icon
    find("#notifications a").click
  end

  def model_name(described_class)
    return :proposal_notification if described_class == ProposalNotification

    described_class.name.gsub("::", "_").downcase.to_sym
  end

  def comment_body(resource)
    if resource.class.name == "Legis
    
  def create_proposal_notification(proposal)
    login_as(proposal.author)
    visit root_path

    click_link "My content"

    within("#proposal_#{proposal.id}") do
      click_link "Dashboard"
    end

    within("#side_menu") do
      click_link "Message to users"
    end

    click_link "Send notification to proposal followers"

    fill_in "proposal_notification_title", with: "Thanks for supporting proposal: #{proposal.title}"
    fill_in "proposal_notification_body", with: "Please share it with others! #{proposal.summary}"
    click_button "Send notification"

    expect(page).to have_content "Your message has been sent correctly."
    Notification.last
  end