You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: KatacodaRunner: "Copy to Editor" appends content to wrong file #238
When having two successive createFile() functions, clicking on the first "Copy to Editor" button will correctly create the desired file. However, when clicking on the second "Copy to Editor" button, the content of the new file will simply be appended into the previously created file. The desired behavior would be that a new file is created as specified in the createFile() function.
This issue can be reproduced by working through step 1 in this scenario.
I am not able to reproduce this bug anymore. Creating an asciidoc tutorial with two createFile() functions in one single step does result in a Katacoda tutorial working as expected. Creating a Markdown tutorial in Katacoda Syntax with two <pre> blocks also works as intended.
Was this a bug on Katacoda side?
For testing I've created an asciidoc file, compiled it and pushed it into my Katacoda Repo. The scenario can be tested on Katacoda over here
The asciidoc tutorial file looks as follows:
The Katacoda user can click on Copy to Editor and the file contents from a.txt will be copied into a new file called a.txt. In the next step, the user can click on Copy to Editor and the b.txt file contents will be copied into another file called b.txt.
Bug
It seems like I cannot reproduce the issue, but the bug before was that when clicking on the second Copy to Editor button, the b.txt file contents would just be appended to a.txt rather than creating a new file.
Activity
derochs commentedon May 20, 2021
I am not able to reproduce this bug anymore. Creating an asciidoc tutorial with two
createFile()functions in one single step does result in a Katacoda tutorial working as expected. Creating a Markdown tutorial in Katacoda Syntax with two<pre>blocks also works as intended.Was this a bug on Katacoda side?
derochs commentedon May 20, 2021
For testing I've created an asciidoc file, compiled it and pushed it into my Katacoda Repo. The scenario can be tested on Katacoda over here
The asciidoc tutorial file looks as follows:
Desired Behavior
The Katacoda user can click on
Copy to Editorand the file contents froma.txtwill be copied into a new file calleda.txt. In the next step, the user can click onCopy to Editorand theb.txtfile contents will be copied into another file calledb.txt.Bug
It seems like I cannot reproduce the issue, but the bug before was that when clicking on the second
Copy to Editorbutton, theb.txtfile contents would just be appended toa.txtrather than creating a new file.