use getBy query instead of queryBy when asserting for elements present in document (#2951)

* replace queryByText with getByText when asserting for presence of element

* use string instead of regex for line numbers

* cleanup test case of CodeSnippet
This commit is contained in:
Abhishek Jakhar
2020-10-19 14:40:56 +05:30
committed by GitHub
parent 782f3b3541
commit ac8d5d5c74
2 changed files with 15 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
update the test cases of CodeSnippet component