Skip to content
Snippets Groups Projects
Unverified Commit 2ec9fdb1 authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Update release channel settings copy (#48425)

* update release channel copy

* update e2e tests
parent 0b7bf918
No related branches found
No related tags found
No related merge requests found
......@@ -1329,7 +1329,7 @@ describe("admin > settings > updates", () => {
it("should show the updates page", () => {
cy.findByLabelText("Check for updates").should("be.visible");
cy.findByTestId("update-channel-setting")
.findByText("Update Channel")
.findByText("Types of releases to check for")
.should("be.visible");
cy.findByTestId("settings-updates").within(() => {
......@@ -1342,7 +1342,7 @@ describe("admin > settings > updates", () => {
cy.findByLabelText("Check for updates").click();
cy.findByTestId("settings-updates").within(() => {
cy.findByText("Update Channel").should("not.exist");
cy.findByText("Types of releases to check for").should("not.exist");
cy.findByText("Some old feature").should("not.exist");
});
});
......@@ -1352,20 +1352,20 @@ describe("admin > settings > updates", () => {
cy.findByText(/Metabase 1\.86\.76 is available/).should("be.visible");
cy.findByText("Some old feature").should("be.visible");
cy.findByText("New latest feature").should("be.visible");
cy.findByText("Stable").click();
cy.findByText("Stable releases").click();
});
popover().findByText("Beta").click();
popover().findByText("Beta releases").click();
cy.findByTestId("settings-updates").within(() => {
cy.findByText(/Metabase 1\.86\.75\.309 is available/).should(
"be.visible",
);
cy.findByText("New beta feature").should("be.visible");
cy.findByText("Beta").click();
cy.findByText("Beta releases").click();
});
popover().findByText("Nightly").click();
popover().findByText("Nightly builds").click();
cy.findByTestId("settings-updates").within(() => {
cy.findByText(/Metabase 1\.86\.75\.311 is available/).should(
......
......@@ -13,15 +13,21 @@ import { VersionUpdateNotice } from "./VersionUpdateNotice/VersionUpdateNotice";
const updateChannelSetting = {
key: "update-channel",
display_name: "Update Channel",
display_name: "Types of releases to check for",
type: "select",
description:
"Metabase will notify you when a new release is available for the channel you select.",
"We'll notify you here when there's a new version of this type of release.",
defaultValue: "latest",
options: [
{ name: c("describes a software version").t`Stable`, value: "latest" },
{ name: c("describes a software version").t`Beta`, value: "beta" },
{ name: c("describes a software version").t`Nightly`, value: "nightly" },
{
name: c("describes a software version").t`Stable releases`,
value: "latest",
},
{ name: c("describes a software version").t`Beta releases`, value: "beta" },
{
name: c("describes a software version").t`Nightly builds`,
value: "nightly",
},
],
} as const;
......
......@@ -78,7 +78,9 @@ describe("SettingsUpdatesForm", () => {
it("shows release channel selection", async () => {
setup({ currentVersion: "v1.0.0", latestVersion: "v1.0.0" });
expect(await screen.findByText("Update Channel")).toBeInTheDocument();
expect(
await screen.findByText("Types of releases to check for"),
).toBeInTheDocument();
});
it("shows correct message when latest version is installed", async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment