1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 15:42:09 +00:00

Added a daily recurring job to cleanup tournaments .

This commit is contained in:
2025-05-06 20:58:45 -04:00
parent 2856060b11
commit 6825da5547
6 changed files with 129 additions and 16 deletions

View File

@@ -27,7 +27,13 @@ describe('Create a tournament', () => {
cy.get('input[name="tournament[address]"]').type('123 Wrestling Way');
cy.get('input[name="tournament[director]"]').type('John Doe');
cy.get('input[name="tournament[director_email]"]').type('john.doe@example.com');
cy.get('input[name="tournament[date]"]').type('2024-12-31');
// Set date to 1 month from today dynamically
const futureDate = new Date();
futureDate.setMonth(futureDate.getMonth() + 1);
const formattedDate = futureDate.toISOString().split('T')[0]; // Format as YYYY-MM-DD
cy.get('input[name="tournament[date]"]').type(formattedDate);
cy.get('select[name="tournament[tournament_type]"]').select('Pool to bracket');
// cy.get('input[name="tournament[is_public]"]').check();