Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Tests Seeding Report: Test Seeding Log(s) are Deleted #179

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

balemae
Copy link

@balemae balemae commented Nov 17, 2023

Pull Request Description

Tests that when a log is deleted, the checkbox in the leftmost column of the table is checked and the "Delete" button is clicked. It also tests that the log is removed from the database and row is removed from the table. This also checks that Seeding Report can remove multiple rows and if the delete is canceled, the rows and corresponding logs are not removed.

Closes #32


Licensing Certification

FarmData2 is a Free Cultural Work and all accepted contributions are licensed as described in the LICENSE.md file. This requires that the contributor holds the rights to do so. By submitting this pull request I certify that I satisfy the terms of the Developer Certificate of Origin for its contents.

@nghtlinh
Copy link

nghtlinh commented Dec 7, 2023

Question: How can we check the database after the removal of a log?

Description:
We are testing whether the Deleted logs are removed from the database. After creating a new log and deleting it, we couldn't utilize the supporting resources listed in ticket #32 (dbtest is absent) as a reference to test the action's performance on the database.
Resource: farmdata2/farmdata2_modules/fd2_example/dbtest

Inquiry:
Could anyone please provide insight or alternative resources that we can use to effectively verify that the log is removed from the database?

Team 2 (Eden and Monica)

@nghtlinh
Copy link

nghtlinh commented Dec 8, 2023

Status: Incomplete

Report Current Progress:

  • We have completed the tests that check whether clicking the delete button removes the wanted row(s) from the table. We also checked that the corresponding row is not removed when we cancel the delete action.

  • However, we're currently unable to validate whether the associated log(s) in the database are also removed or if the database retains its original state after canceling the delete action. Furthermore, since the delete button keeps disappearing when the page is reloaded, our tests don't have a consistent result.

Team 2 (Eden and Monica)

@balemae balemae marked this pull request as ready for review December 8, 2023 18:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Seeding Report: Test Seeding Log(s) Deleted
2 participants