Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Incorrect test: `copyNoteCopiesDeckId`

Open david-allison opened this issue 2 months ago • 9 comments

Copy Note should be performed when editing a note, not adding a note.

https://github.com/ankidroid/Anki-Android/blob/fa8ef17405e8c20809ef4cd65f980659ba0800a7/AnkiDroid/src/test/java/com/ichi2/anki/NoteEditorTest.kt#L286-L303

See how FromScreen.DECK_LIST is handled

https://github.com/ankidroid/Anki-Android/blob/fa8ef17405e8c20809ef4cd65f980659ba0800a7/AnkiDroid/src/test/java/com/ichi2/anki/NoteEditorTest.kt#L914-L924

david-allison avatar Sep 20 '26 18:09 david-allison

i wanted to work on this issue. please assign it to me.

Sanjeev-Narang avatar Sep 21 '26 04:09 Sanjeev-Narang

Hi @Sanjeev-Narang ! Just wanted to check if you’re still working on this issue. I’d be happy to help out if needed. @david-allison , if Sanjeev could use some help with this, I’d be glad to take it up alongside him.

Ranjan-3105 avatar Sep 29 '26 13:09 Ranjan-3105

@Ranjan-3105 i was busy but I'm working on right now. I will be raising the pr in couple of days.

Sanjeev-Narang avatar Sep 29 '26 14:09 Sanjeev-Narang

@Ranjan-3105 I think , I have figured out how to get this test right please let me know if i can raise a PR .

AbhishekTentiwala avatar Oct 12 '26 22:10 AbhishekTentiwala

@david-allison please review my PR

AbhishekTentiwala avatar Oct 15 '26 06:10 AbhishekTentiwala

@AbhishekTentiwala no need to ping! It's on my review queue

david-allison avatar Oct 15 '26 10:10 david-allison

@Sanjeev-Narang are you still working on this?

david-allison avatar Oct 15 '26 11:10 david-allison

@david-allison my bad. actually i met with an accident so was not able to work on this issue. But now I'm working on it and will be opening pr within 1 day.

Sanjeev-Narang avatar Oct 15 '26 14:10 Sanjeev-Narang

It's open source, no rush or obligation, just keep us in the loop. Hope you recover soon!

david-allison avatar Oct 15 '26 14:10 david-allison