From f8252a30e292f96f82e5db5bfda7e0b047e652c9 Mon Sep 17 00:00:00 2001 From: mihilt Date: Mon, 8 Aug 2022 21:17:34 +0900 Subject: [PATCH 1/2] fix: fix some errors - fix RAM size correctly - fix terminal username correctly --- .../InteractiveTutorial/InteractiveTutorialRoot.tsx | 12 ++++++------ test/cypress/integration/tutorial.spec.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx index 6135ea103..04e86789f 100644 --- a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx +++ b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx @@ -376,12 +376,12 @@ export function InteractiveTutorialRoot(): React.ReactElement {
To create a new script or edit an existing one, you can use{" "} - {"[home ~/]> nano"} + {"[n00dles ~/]> nano"} Scripts must end with the {tutorialScriptExtension} extension. Let's make a script now by entering{" "} - {`[home ~/]> nano ${tutorialScriptName}`} + {`[n00dles ~/]> nano ${tutorialScriptName}`} after the hack command finishes running (Sidenote: Pressing ctrl + c will end a command like hack early) @@ -439,7 +439,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
To check how much RAM is available on this machine, enter
- {"[home ~/]> free"} + {"[n00dles ~/]> free"} ), canNext: false, @@ -448,9 +448,9 @@ export function InteractiveTutorialRoot(): React.ReactElement { content: ( <> - We have 8GB of free RAM on this machine, which is enough to run our script. Let's run our script using + We have 4GB of free RAM on this machine, which is enough to run our script. Let's run our script using - {`[home ~/]> run ${tutorialScriptName}`} + {`[n00dles ~/]> run ${tutorialScriptName}`} ), canNext: false, @@ -497,7 +497,7 @@ export function InteractiveTutorialRoot(): React.ReactElement { One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the tail command. Do that now for the script we just ran by typing{" "} - {`[home ~/]> tail ${tutorialScriptName}`} + {`[n00dles ~/]> tail ${tutorialScriptName}`} ), canNext: false, diff --git a/test/cypress/integration/tutorial.spec.ts b/test/cypress/integration/tutorial.spec.ts index a2a779aa4..d9b1c4619 100644 --- a/test/cypress/integration/tutorial.spec.ts +++ b/test/cypress/integration/tutorial.spec.ts @@ -60,7 +60,7 @@ describe("tutorial", () => { cy.findByText(/now we'll run the script/i); cy.findByRole("textbox").type("free{enter}"); - cy.findByText(/We have 8GB of free RAM on this machine/i); + cy.findByText(/We have 4GB of free RAM on this machine/i); cy.findByRole("textbox").type("run n00dles.script{enter}"); cy.findByText(/Your script is now running/i); From c07f525d4a81ae367b081151a7f00c6cd73d3ab1 Mon Sep 17 00:00:00 2001 From: mihilt Date: Tue, 9 Aug 2022 18:48:53 +0900 Subject: [PATCH 2/2] fix: undo a wrong correction --- src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx index 04e86789f..dd7f168b1 100644 --- a/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx +++ b/src/ui/InteractiveTutorial/InteractiveTutorialRoot.tsx @@ -376,7 +376,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
To create a new script or edit an existing one, you can use{" "} - {"[n00dles ~/]> nano"} + {"[home ~/]> nano"} Scripts must end with the {tutorialScriptExtension} extension. Let's make a script now by entering{" "}