-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Interaction Testing #14
Comments
May I start working on this? |
@sanketshevkar none of these tests currently exist. The Issue is for creating them. |
No problem, the checkbox was checked, that's why I thought so. |
OH! Yeah I don't know why that is, that must've been a mistake on my part sorry about that. |
I'm writing the interaction tests using cypress. The storybook documentation also suggested using enzyme or cypress for interaction testing. Also setting up enzyme within storyshots was a bit complicated so decided to use cypress which is working fine. I did some dummy tests with the web-components storybook and seemed to workout, I'll share the video by tomorrow. Just wanted to know whether this approach would be right? |
This approach doesn't strike me as wrong so far, so yeah let's see how this progress goes. Storybook suggesting Cypress is a good sign that it would be a good approach. |
https://www.loom.com/share/b128d0a885694420bf4d55edda57ab73
|
@irmerk what is the difference between
|
Very cool. I haven't used Cypress before. It looks like we'll want to set up an OSS plan with them (instructions) and implement this in GitHub Actions for this repo. These two you mentioned may end up being the same. In my mind I wanted to distinguish the difference between highlighting an entire paragraph with the cursor, placing the cursor inside the paragraph, highlighting a word, and highlighting the paragraph with a triple click. |
I put in a request to Cypress. If approved, Cypress will provide AP with a plan that allows unlimited test recordings and up to 5 users. All projects we create in the Cypress Dashboard will be public. Data will be retained for 90 days. Our organization will have access to all the features the Cypress Dashboard provides, including parallelization. CC: @jeromesimeon @DianaLease @dselman @mttrbrts @accordproject/maintainers-ui @accordproject/tsc @accordproject/contributors |
I think just continue on @sanketshevkar, I'm opening another Issue to track setting up Cypress for this repo. |
@irmerk That sounds great. Should I create a pr for cypress setup and then start working on the tests? |
What would that involve @sanketshevkar? |
Basically has two parts:
|
Yeah I think that works |
@irmerk I've made a pull request with the cypress setup. |
@irmerk @sanketshevkar Cypress testing only deals with the automated testing software for e2e whereas there is a need to lay down the setup for unit testing as well. |
What do you propose @Cronus1007? |
@irmerk The |
We should follow the precedent set in |
Hotkeys in markdown-editor have not been added i guess. |
Now that #282 is finished, this Issue becomes a lot more accessible. I'm going to mark it as unassigned because this is probably the single most important Issue in this repo currently and I want to leave it open for as many people to work on it as possible. |
Works for me 👍. |
@irmerk I wanted to discuss the structure of the tests. Basically, there are two ways we can do it:
The first one is suggested by cypress docs and the second one by storybook docs, which one would be preferable? |
@sanketshevkar Let's be pragmatic, the second option works for you, and we have a sample here: https://github.com/accordproject/web-components/blob/master/packages/storybook/cypress/storybook/storybook.spec.js Let's go with 2. One downside is that it requires a contributor to run tests for the storybook package when only making changes to an individual component. However, we can probably mitigate that with some test filtering and good docs. |
Okay, that sounds cool. I'll move ahead with this. |
@sanketshevkar Since the issue is very large so lets divide issue. |
I've been anyways unassigned from this one. It's an open issue now. I've started with testing headings. If you want you can join in for that or pick up any other part you want. |
Okk So I will pick up the |
Yeah maybe this isn't the best way, but I'm thinking call out which one you want to work on and we can put your name next to it in the original post. So I'll put @sanketshevkar on headings and @Cronus1007 on marks. |
Signed-off-by: Sanket Shevkar <shevkar.sanket@gmail.com>
@mttrbrts @irmerk is this still needed/open? If yes, I can pick this up again 😄 |
This issue will track the tests which need to be implemented in order to increase stability of this codebase. Please feel free to add suggestions.
MASTER_MARK_LIST: (@RiverceeBontu)
bold
,italic
,hyperlink
,code
bold+italic
,bold+hyperlink
,bold+code
italic+hyperlink
,italic+code
code+hyperlink
bold+italic+hyperlink
,bold+italic+code
italic+code+hyperlink
,italic+code+bold
bold+italic+hyperlink+code
MASTER_BLOCK_TRANSFORM:
block_quote
toul_list
ul_list
toblock_quote
block_quote
tool_list
ol_list
toblock_quote
ul_list
tool_list
ol_list
toul_list
MASTER_HISTORY_CHECK:
Toolbar
Headings (@sanketshevkar)
paragraph
and changing to header 1, 2, 3paragraph
and changing to header 1, 2, 3paragraph
and changing to header 1, 2, 3paragraph
paragraph
paragraph
paragraph
to header 1, 2, 3paragraph
with all combinations to header 1, 2, 3block_quote
into header 1, 2, 3list_item
inul_list
into header 1, 2, 3list_item
inol_list
into header 1, 2, 3ul_list
into header 1, 2, 3ol_list
into header 1, 2, 3Marks (@Cronus1007)
Bold
bold
Paragraph
paragraph
italic
,italic+code
,code
ul_list
andol_list
with MASTER_MARK_LISTbold
bold
and type more charactersItalic
italic
Paragraph
paragraph
bold
,bold+code
,code
ul_list
andol_list
with MASTER_MARK_LISTitalic
italic
and type more charactersCode
code
Paragraph
paragraph
italic
,italic+bold
,bold
ul_list
andol_list
with MASTER_MARK_LISTcode
code
and type more charactersBlocks
Hyperlink
Images
Rendering
Breaks
Actions
Shortcuts
The text was updated successfully, but these errors were encountered: