可以在管道文件内声明变量,如以下 GitHub 示例所示:
# ...
env:
NODE_VERSION: 16.3.1
FOLDER_PATH: Project
# ...
steps:
- name: Move to project folder
run: cd $FOLDER_PATH
# ...
Run Code Online (Sandbox Code Playgroud)
是否可以在 bitbucket 管道文件中执行类似的操作?(如何?)
谢谢任何帮助:)
我遇到一些问题,无法测试 MUI 下拉列表。我收到此错误:Unable to find an accessible element with the role "option" and name "/ninica/i"
我这里有一个示例代码:https://codesandbox.io/s/react-testing-library-material-ui-dropdown-5knbgu
\n我的测试:
\ntest("select", () => {\n render(<App />);\n\n // Get and click in the dropdown\n const dropdownButton = screen.getByRole("button", { name: /dog name \xe2\x80\x8b/i });\n fireEvent.click(dropdownButton);\n\n // Get and click in the dropdown item\n const dropdownItem = screen.getByRole("option", { name: /ninica/i });\n fireEvent.click(dropdownItem);\n});\nRun Code Online (Sandbox Code Playgroud)\n我已经尝试使用getByTestId但有相同的结果,找不到。