Skip to content

Commit

Permalink
Update welcome views (#1524)
Browse files Browse the repository at this point in the history
## Changes
Follow up to #1519



<!-- Summary of your changes that are easy to understand -->

## Tests

<!-- How is this tested? -->
  • Loading branch information
ilia-db authored Jan 21, 2025
1 parent c0de2e6 commit ad8ac4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/databricks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,22 +451,22 @@
},
{
"view": "configurationView",
"contents": "Detected multiple Databricks projects in the VSCode workspace:\n[Select a project](command:databricks.bundle.selectActiveProjectFolder)",
"contents": "Multiple Databricks projects were detected in the workspace:\n[Choose a project](command:databricks.bundle.selectActiveProjectFolder)",
"when": "workspaceFolderCount > 0 && databricks.context.initialized && databricks.context.subProjectsAvailable"
},
{
"view": "configurationView",
"contents": "No Databricks project configuration detected in the root of the VSCode workspace:\n[Create configuration](command:databricks.bundle.startManualMigration)",
"contents": "Databricks project configuration was not detected in the root of the workspace:\n[Create configuration](command:databricks.bundle.startManualMigration)",
"when": "workspaceFolderCount > 0 && databricks.context.initialized && databricks.context.pendingManualMigration"
},
{
"view": "configurationView",
"contents": "No Databricks projects detected in the VSCode workspace:\n[Select a project manually](command:databricks.bundle.selectActiveProjectFolder)",
"contents": "A Databricks project was not detected in the workspace:\n[Select a project](command:databricks.bundle.selectActiveProjectFolder)",
"when": "workspaceFolderCount > 0 && databricks.context.initialized && !databricks.context.isBundleProject && !databricks.context.subProjectsAvailable"
},
{
"view": "configurationView",
"contents": "Chose a new parent folder and create a Databricks project based on a [template](https://docs.databricks.com/en/dev-tools/bundles/templates.html#databricks-asset-bundle-project-templates):\n[Create a new project](command:databricks.bundle.initNewProject)",
"contents": "Select a folder where you want to create a new Databricks project using a [template](https://docs.databricks.com/en/dev-tools/bundles/templates.html#databricks-asset-bundle-project-templates):\n[Create a new project](command:databricks.bundle.initNewProject)",
"when": "workspaceFolderCount > 0 && databricks.context.initialized && !databricks.context.isBundleProject"
},
{
Expand All @@ -486,7 +486,7 @@
},
{
"view": "configurationView",
"contents": "To learn more about how to use Databricks with VS Code [read our docs](https://docs.databricks.com/dev-tools/vscode-ext.html) or [Quickstart guide](command:databricks.quickstart.open)"
"contents": "To learn more about how to use the Databricks extension for Visual Studio Code [read our docs](https://docs.databricks.com/dev-tools/vscode-ext.html) or [Quickstart guide](command:databricks.quickstart.open)"
}
],
"menus": {
Expand Down
10 changes: 5 additions & 5 deletions packages/databricks-vscode/src/test/e2e/bundle_sub_folder.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@ describe("Bundle in a sub folder", async function () {
"Selecting Databricks Project Folder through the welcome screen UI"
);
const section = await getViewSection("CONFIGURATION");
const selectProjectButton = await browser.waitUntil(
const chooseProjectButton = await browser.waitUntil(
async () => {
const welcome = await section!.findWelcomeContent();
const buttons = await welcome!.getButtons();
for (const button of buttons) {
const title = await button.getTitle();
if (title === "Select a project") {
if (title === "Choose a project") {
return button;
}
}
}
);
assert(
selectProjectButton,
"'Select a project' button doesn't exist"
chooseProjectButton,
"'Choose a project' button doesn't exist"
);
await selectProjectButton.elem.click();
await chooseProjectButton.elem.click();
} else {
console.log(
"Selecting Databricks Project Folder though a tree item command"
Expand Down

0 comments on commit ad8ac4a

Please sign in to comment.