{
  "id": "0cecd4f3-74de-457b-ba94-29ad6b5dafb6",
  "snapshot": "libreoffice_calc",
  "instruction": "Rename \"Sheet 1\" to \"LARS Resources\". Then make a copy of it. Place the copy before \"Sheet 2\" and rename it by appending a suffix \"(Backup)\", concatenated by a white space. And Also rename \"Sheet2\" by appending the suffix \"(Offline)\".",
  "source": "https://www.libreofficehelp.com/add-insert-delete-copy-move-rename-a-worksheet-in-libreoffice-calc/",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.usercontent.google.com/download?id=1emE6hfKYJpsKNoJ7fmSKCug9pZ9Rv0fx&export=download&authuser=0&confirm=t&uuid=b84ee976-0dab-4a32-a99d-56873f016eec&at=APZUnTVs-ZH77mNQ9-YCLqj2H5xh:1706261078154",
            "path": "/home/user/copy_sheet_insert.xlsx"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "/home/user/copy_sheet_insert.xlsx"
      }
    }
  ],
  "trajectory": "trajectories/0cecd4f3-74de-457b-ba94-29ad6b5dafb6",
  "related_apps": [
    "libreoffice_calc"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "copy_sheet_insert.xlsx - LibreOffice Calc",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
          ]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      }
    ],
    "func": "compare_table",
    "result": {
      "type": "vm_file",
      "path": "/home/user/copy_sheet_insert.xlsx",
      "dest": "copy_sheet_insert.xlsx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://drive.usercontent.google.com/download?id=1u0mYkDejNIFWfSOvQCi2z6nXTinUqhGG&export=download&authuser=0&confirm=t&uuid=d9036b53-dc50-4451-9e81-a5327b846c29&at=APZUnTU6PV42c83Ug6CGUQ6zx0mA:1706261109913",
      "dest": "copy_sheet_insert_gold.xlsx"
    },
    "options": {
      "rules": [
        {
          "type": "sheet_name"
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 0,
          "sheet_idx1": 1
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 1,
          "sheet_idx1": "EI1"
        },
        {
          "type": "sheet_data",
          "sheet_idx0": 2,
          "sheet_idx1": "EI2"
        }
      ]
    }
  }
}
