Skip to content

Commit

Permalink
Additional naming changes and update learning links
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar committed May 2, 2024
1 parent 269911d commit ec0b2b4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ui/app/[locale]/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async function RecentTopics() {
<EmptyState variant={"xs"}>
<EmptyStateHeader title={"No topics were viewed yet"} />
<EmptyStateBody>
When you start looking at specific topics through the {t("common.product")} console, they&quot;ll start showing here.
When you start looking at specific topics through the {t("common.product")} console, they&#39;ll start showing here.
</EmptyStateBody>
<EmptyStateFooter>
<EmptyStateActions className={"pf-v5-u-font-size-sm"}>
Expand Down
19 changes: 9 additions & 10 deletions ui/messages/en.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"common": {
"brand": "Red Hat",
"product": "Streams for Apache Kafka",
"title": "Red Hat Streams for Apache Kafka console",
"description": "Red Hat Streams for Apache Kafka is a lightweight, high-performance, robust messaging platform.",
"product": "streams for Apache Kafka",
"title": "Red Hat streams for Apache Kafka console",
"description": "Red Hat streams for Apache Kafka is a lightweight, high-performance, robust messaging platform.",
"search_hint": "Filter by {label}"
},
"learning": {
"links": {
"overview": "https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.5/html/amq_streams_on_openshift_overview",
"gettingStarted": "https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.5/html/getting_started_with_amq_streams_on_openshift",
"connecting": "https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.5/html/developing_kafka_client_applications",
"topicOperatorUse": "https://access.redhat.com/documentation/en-us/red_hat_amq_streams/2.5/html/deploying_and_managing_amq_streams_on_openshift/using-the-topic-operator-str#doc-wrapper"

"overview": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html/streams_for_apache_kafka_on_openshift_overview",
"gettingStarted": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html/getting_started_with_streams_for_apache_kafka_on_openshift",
"connecting": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html/developing_kafka_client_applications",
"topicOperatorUse": "https://docs.redhat.com/en/documentation/red_hat_streams_for_apache_kafka/2.7/html/deploying_and_managing_streams_for_apache_kafka_on_openshift/using-the-topic-operator-str#doc-wrapper"
}
},
"RefreshButton": {
Expand Down Expand Up @@ -169,7 +168,7 @@
},
"ManagedTopicLabel": {
"label": "Managed",
"tooltip": "Managed topics are created using the KafkaTopic custom resource and are created and updated in the Kafka cluster by the Streams for Apache Kafka Topic Operator."
"tooltip": "Managed topics are created using the KafkaTopic custom resource and are created and updated in the Kafka cluster by the streams for Apache Kafka Topic Operator."
},
"AdvancedSearch": {
"dialog_label": "Search messages",
Expand Down Expand Up @@ -231,7 +230,7 @@
"internal_Servers_bootstraps_description": "Internal listeners provide client access to a Kafka cluster only from within the OpenShift cluster.",
"when_you_have_established_a_connection": "When you have established a connection, you can begin consuming messages from Kafka topics or producing messages to them.",
"developing_kafka_client_applications": "Developing Kafka client applications",
"streams_portal": "Streams for Apache Kafka portal"
"streams_portal": "streams for Apache Kafka portal"
},
"ClusterDrawer": {
"cluster_connection_details": "Cluster connection details"
Expand Down
8 changes: 4 additions & 4 deletions ui/tests/playwright/HomePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ test("Home page", async ({ page }) => {
await test.step("Text on Home Page", async () => {
// Assertions for the presence of specific strings in the inner text of page elements
expect(await page.innerText("body")).toContain(
"Welcome to the Streams for Apache Kafka console",
"Welcome to the streams for Apache Kafka console",
);
expect(await page.innerText("body")).toContain(
"Platform: OpenShift Cluster",
);
expect(await page.innerText("body")).toContain("Recently viewed topics");
expect(await page.innerText("body")).toContain(
'When you start looking at specific topics through the Streams for Apache Kafka console, they"ll start showing here.',
"When you start looking at specific topics through the streams for Apache Kafka console, they'll start showing here.",
);
expect(await page.innerText("body")).toContain(
"Streams for Apache Kafka on OpenShift Overview",
"streams for Apache Kafka on OpenShift Overview",
);
expect(await page.innerText("body")).toContain(
"Recommended learning resources",
);
expect(await page.innerText("body")).toContain(
"Getting Started with Streams for Apache Kafka on Openshift",
"Getting Started with streams for Apache Kafka on Openshift",
);
expect(await page.innerText("body")).toContain(
"Connect to a Kafka cluster from an application",
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/playwright/auth.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ setup("authenticate", async ({ page }) => {
// Sometimes login flow sets cookies in the process of several redirects.
await page.waitForURL("./home", { waitUntil: "commit" });
await expect(
page.getByText("Welcome to the Streams for Apache Kafka console"),
page.getByText("Welcome to the streams for Apache Kafka console"),
).toBeVisible();

await page.context().storageState({ path: authFile });
Expand Down

0 comments on commit ec0b2b4

Please sign in to comment.