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: expectations.rb
    path of file: ./repos/openproject/spec/support/toasts
    
    the code of the file until where you have to start completion: module Toasts
  module Expectations
    def expect_toast(message:, type: :success)
      if toast_type == :angular
        expect(page).to have_css(".op-toast.-#{type}", text: message, w
    
    def expect_toast(message:, type: :success)
      if toast_type == :angular
        expect(page).to have_css(".op-toast.-#{type}", text: message, wait: 20)
      elsif type == :error
        expect(page).to have_css(".errorExplanation", text: message)
      elsif type == :success
        expect(page).to have_css(".op-toast.-success", text: message)
      else
        raise NotImplementedError
      end