Skip to content
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 Story 5 #5

Open
SVinnik99 opened this issue Jan 5, 2024 · 1 comment
Open

User Story 5 #5

SVinnik99 opened this issue Jan 5, 2024 · 1 comment

Comments

@SVinnik99
Copy link
Owner

No description provided.

@SVinnik99 SVinnik99 converted this from a draft issue Jan 5, 2024
@SVinnik99
Copy link
Owner Author

US-05 Finish an occupied table

As a restaurant manager

I want to free up an occupied table when the guests leave

so that I can seat new guests at that table.

Acceptance Criteria

  1. The /dashboard page will
    • Display a "Finish" button on each occupied table.
    • the "Finish" button must have a data-table-id-finish={table.table_id} attribute, so it can be found by the tests.
    • Clicking the "Finish" button will display the following confirmation: "Is this table ready to seat new guests? This cannot be undone." If the user selects "Ok" the system will: - Send a DELETE request to /tables/:table_id/seat in order to remove the table assignment. The tests do not check the body returned by this request. - The server should return 400 if the table is not occupied. - Refresh the list of tables to show that the table is now available.
    • Clicking the "Cancel" makes no changes.

Hint The end-to-end test waits for the tables list to be refreshed before checking the free/occupied status of the table, so be sure to send a GET request to /tables to refresh the tables list.

@SVinnik99 SVinnik99 moved this from Todo to Done in @SVinnik99's Thinkful Capstone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant