Skip to content

Commit

Permalink
Merge pull request #704 from tone-row/dev
Browse files Browse the repository at this point in the history
v1.54.1
  • Loading branch information
rob-gordon authored Aug 6, 2024
2 parents 46b79c6 + d8c51e8 commit 466d6bd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/e2e/pro.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test.beforeAll(async ({ browser }) => {
});

test("Create new chart", async () => {
await page.getByRole("link", { name: "New" }).click();
await page.getByTestId("new-chart-link").click();
await page.getByLabel("Name Chart").fill("my new chart");
await page.getByRole("button", { name: "Create" }).click();
// expect url to be regex BASE_URL + /u/\d+
Expand Down Expand Up @@ -116,7 +116,7 @@ test("Go to Sandbox. Save Sandbox Chart", async () => {
});

test("Create chart from AI", async () => {
await page.getByRole("link", { name: "New" }).click();
await page.getByTestId("new-chart-link").click();
await page.getByTestId("Use AI").click();
await page.locator('textarea[name="subject"]').click();
await page
Expand All @@ -131,7 +131,7 @@ test("Create chart from AI", async () => {

test("Create chart from imported data", async () => {
try {
await page.getByRole("link", { name: "New" }).click();
await page.getByTestId("new-chart-link").click();
await page.getByTestId("Create Chart").click();
await page.waitForURL(new RegExp(`${BASE_URL}/u/\\d+`));
await page.getByRole("button", { name: "Import Data" }).click();
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "1.54.0",
"version": "1.54.1",
"main": "module/module.js",
"license": "MIT",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions app/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const Header = memo(function SharedHeader() {
className="shared-header__new"
aria-current={isNewPage ? "page" : undefined}
to="/new"
data-testid="new-chart-link"
/>
</NavigationMenu.Item>
<NavigationMenu.Item asChild>
Expand Down
2 changes: 1 addition & 1 deletion app/src/locales/es/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/src/locales/es/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ msgstr "Usar clases para agrupar nodos"

#: src/lib/getDefaultText.ts:8
msgid "Use colons like \"Decisions:\"."
msgstr "Usa dos puntos como \\"
msgstr "Usa dos puntos como \"Decisiones\\:\"."

#: src/components/LearnSyntaxDialog.tsx:394
msgid "Use the attribute <0>href</0> to set a link on a node that opens in a new tab."
Expand Down
2 changes: 1 addition & 1 deletion app/src/locales/zh/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/src/locales/zh/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ msgstr "使用类来分组节点"

#: src/lib/getDefaultText.ts:8
msgid "Use colons like \"Decisions:\"."
msgstr "使用冒号(:)表示\\"
msgstr "使用冒号\\(:)表示\\"

#: src/components/LearnSyntaxDialog.tsx:394
msgid "Use the attribute <0>href</0> to set a link on a node that opens in a new tab."
Expand Down

0 comments on commit 466d6bd

Please sign in to comment.