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: agent_ticket_tag_test.rb
    path of file: ./repos/zammad/test/browser
    
    the code of the file until where you have to start completion: # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/

require 'browser_test_helper'

class AgentTicketTagTest < TestCase
  def test_a_tags
    @browser = browser_instance
    login(
      username: 'agent1@example.com',
      password: 'test',
      url:      browser_url,
    )
    tasks_close_all

    # set tag (by tab)
    ticket_create(
      data:          {
        customer: 'nico',
        group:    'Users',
        title:    'some subject 123äöü - tags 1',
        body:     'some body 123äöü - tags 1',
      },
      do_not_submit: true,
    )
    sleep 1
    set(
      css:   '.active .ticket-form-bottom .token-input',
      value: 'tag1, tag2',
    )
    sendkey(value: :tab)

    # reload browser
    sleep 6
    reload
    sleep 2

    click(
      css: '.active .newTicket button.js-submit',
    )
    sleep 5
    if !@browser.current_url.match?(%r{#{Regexp.quote('#ticket/zoom/
    
  def test_b_tags
    tag_prefix = 'tag6'

    @browser = browser_instance
    login(
      username: 'admin@example.com',
      password: 'test',
      url:      browser_url,
    )
    tasks_close_all

    click(css: 'a[href="#manage"]')
    click(css: '.content.active a[href="#manage/tags"]')
    switch(
      css:  '.content.active .js-newTagSetting',
      type: 'off',
    )

    set(
      css:   '.content.active .js-create input[name="name"]',
      value: "#{tag_prefix} A",
    )
    click(css: '.content.active .js-create .js-submit')
    set(
      css:   '.content.active .js-create input[name="name"]',
      value: "#{tag_prefix} B",
    )
    click(css: '.content.active .js-create .js-submit')
    set(
      css:   '.content.active .js-create input[name="name"]',
      value: "#{tag_prefix} C",
    )
    click(css: '.content.active .js-create .js-submit')

    # set tag (by tab)
    ticket_create(
      data:          {
        customer: 'nico',
        group:    'Users',
        title:    'some subject 123äöü - tags no new 1',
        body:     'some body 123äöü - tags no new 1',
      },
      do_not_submit: true,
    )
    sleep 1
    set(
      css:   '.active .ticket-form-bottom .token-input',
      value: "#{tag_prefix} A",
    )
    sleep 2
    sendkey(value: :tab)
    sleep 1
    set(
      css:   '.active .ticket-form-bottom .token-input',
      value: "#{tag_prefix} B",
    )
    sleep 2
    sendkey(value: :tab)
    sleep 1
    set(
      css:   '.active .ticket-form-bottom .token-input',
      value: 'NOT EXISTING',
    )
    sleep 2
    sendkey(value: :tab)
    sleep 1

    click(
      css: '.active .newTicket button.js-submit',
    )
    sleep 5
    if !@browser.current_url.match?(%r{#{Regexp.quote('#ticket/zoom/')}})
      raise 'Unable to create ticket!'
    end