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
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.
The text was updated successfully, but these errors were encountered:
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.
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 thecreateFile()
function.This issue can be reproduced by working through step 1 in this scenario.
The text was updated successfully, but these errors were encountered: