Skip to content

Commit

Permalink
slightly expand the functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-jones committed May 3, 2023
1 parent b926159 commit 24c6fe6
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 22 deletions.
16 changes: 14 additions & 2 deletions doajtest/testbook/journal_form/associate_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,22 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `aseditor2`
- step: Go to Journal page at `/editor/journal/1234`
results:
- You can see the note that you have created before with `aseditor1`
- but you can't edit or delete that note
- step: Attempt to click into the note area and edit it
results:
- you are unable to edit the note
- step: Attempt to click the "Remove" button
results:
- You are unable to delete the note

18 changes: 15 additions & 3 deletions doajtest/testbook/journal_form/editor_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,21 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- step: Switch to other editor account `editor2`
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `editor2`
- step: Go to Journal page at `/editor/journal/1234`
results:
- You can see the note that you have created before with `editor1`
- but you can't edit or delete that note
- step: Attempt to click into the note area and edit it
results:
- you are unable to edit the note
- step: Attempt to click the "Remove" button
results:
- You are unable to delete the note
20 changes: 16 additions & 4 deletions doajtest/testbook/journal_form/maned_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,21 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- step: Switch to other account `admin2`
- step: Go to Journal page at `/admin/journal/1234`
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `admin2`
- step: Go to Journal page at `/editor/journal/1234`
results:
- You can see the note that you have created before with `admin1`
- you also can edit or delete that note
- step: Attempt to click into the note area and edit it
results:
- you are able to edit the note
- step: Attempt to click the "Remove" button
results:
- You are able to delete the note
23 changes: 17 additions & 6 deletions doajtest/testbook/new_application_form/associate_editor_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,21 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- step: Switch to other associate editor account `aseditor2`
- step: Go to Application page at `/editor/application/1234`
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- You can see the note that you have created before with `aseditor1`
- but you can't edit or delete that note

- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `aseditor2`
- step: Go to Application page at `/editor/application/1234`
results:
- You can see the note that you have created before with `aseditor1`
- step: Attempt to click into the note area and edit it
results:
- you are unable to edit the note
- step: Attempt to click the "Remove" button
results:
- You are unable to delete the note
18 changes: 15 additions & 3 deletions doajtest/testbook/new_application_form/editor_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,21 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- step: Switch to other editor account `editor2`
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `editor2`
- step: Go to Application page at `/editor/application/1234`
results:
- You can see the note that you have created before with `editor1`
- but you can't edit or delete that note
- step: Attempt to click into the note area and edit it
results:
- you are unable to edit the note
- step: Attempt to click the "Remove" button
results:
- You are unable to delete the note
21 changes: 17 additions & 4 deletions doajtest/testbook/new_application_form/maned_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,22 @@ tests:
results:
- The note is saved and displayed in the list of notes
- you username and user id will be showed on that note
- you can edit and delete the note
- step: Switch to other account `admin2`
- step: Go to Application page at `/admin/application/1234`
- the date and time you created the note will be shown
- step: Click into the note field and edit the note
results:
- The note is editable
- step: Click "Remove" underneath the note
results:
- The note is deleted
- step: Create a new note as per the above steps
- step: Switch to other associate editor account `admin2`
- step: Go to Application page at `/editor/application/1234`
results:
- You can see the note that you have created before with `admin1`
- you also can edit or delete that note
- step: Attempt to click into the note area and edit it
results:
- you are able to edit the note
- step: Attempt to click the "Remove" button
results:
- You are able to delete the note

0 comments on commit 24c6fe6

Please sign in to comment.