hunk.code_window:             <field name="name">mrp.workcenter.kanban</field>
               <field name="model">mrp.workcenter</field>
               <field name="arch" type="xml">
                   <kanban class="oe_background_grey o_kanban_dashboard o_workcenter_kanban" create="0" sample="1">
                       <field name="name"/>
                       <field name="color"/>
                       <field name="workorder_count"/>
                       <field name="working_state"/>
                       <field name="oee_target"/>
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:                 <kanban class="o_kanban_dashboard o_workcenter_kanban" create="0" sample="1">
  
hunk.file_path: addons/mrp/views/mrp_workcenter_views.xml
hunk.type: replace
file: /** @odoo-module **/
  
  import { createFile, inputFiles } from "web.test_utils_file";
  
  import { registry } from "@web/core/registry";
  
  /**
   * This tour depends on data created by python test in charge of launching it.
   * It is not intended to work when launched from interface. It is needed to test
   * an action (action manager) which is not possible to test with QUnit.
   * @see mail/tests/test_mail_full_composer.py
   */
  registry.category("web_tour.tours").add(
      "mail/static/tests/tours/mail_full_composer_test_tour.js",
      {
          test: true,
          steps: [
          {
              content: "Click on Send Message",
              trigger: ".o_ChatterTopbar_buttonSendMessage",
          },
          {
              content: "Write something in composer",
              trigger: ".o_ComposerTextInputView_textarea",
              run: "text blahblah",
          },
          {
              content: "Add one file in composer",
              trigger: ".o_ComposerView_buttonAttachment",
              async run() {
                  const file = await createFile({
                      content: "hello, world",
                      contentType: "text/plain",
                      name: "text.txt",
                  });
                  const messaging = await odoo.__DEBUG__.messaging;
                  const uploader = messaging.models["ComposerView"].all()[0].fileUploader;
                  inputFiles(uploader.fileInput, [file]);
              },
          },
          {
              content: "Open full composer",
              trigger: ".o_ComposerView_buttonFullComposer",
              extra_trigger: ".o_AttachmentCard:not(.o-isUploading)", // waiting the attachment to be uploaded
          },
          {
              content: "Check the earlier provided attachment is listed",
              trigger: '.o_AttachmentCard[title="text.txt"]',
              run() {},
          },
          {
              content: "Check subject is autofilled",
              trigger: '[name="subject"] input',
              run() {
                  const subjectValue = document.querySelector('[name="subject"] input').value;
                  if (subjectValue !== "Test User") {
                      console.error(
                          `Full composer should have "Test User" in subject input (actual: ${subjectValue})`
                      );
                  }
              },
          },
          {
              content: "Check composer content is kept",
              trigger: '.o_field_html[name="body"]',
              run() {
                  const bodyContent = document.querySelector('.o_field_html[name="body"]')
                      .textContent;
                  if (!bodyContent.includes("blahblah")) {
                      console.error(
                          `Full composer should contain text from small composer ("blahblah") in body input (actual: ${bodyContent})`
                      );
                  }
              },
          },
          {
              content: "Open templates",
              trigger: '.o_field_widget[name="template_id"] input',
          },
          {
              content: "Check a template is listed",
              in_modal: false,
              trigger: '.ui-autocomplete .ui-menu-item a:contains("Test template")',
              run() {},
          },
          {
              content: "Send message",
              trigger: ".o_mail_send",
          },
          {
              content: "Check message is shown",
              trigger: '.o_MessageView:contains("blahblah")',
          },
          {
              content: "Check message contains the attachment",
              trigger: '.o_MessageView .o_AttachmentCard_filename:contains("text.txt")',
          },
      ]
  });
  