1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 14:36:59 +00:00

Added a daily recurring job to cleanup tournaments .

This commit is contained in:
2025-05-07 13:11:19 -04:00
parent 2856060b11
commit 2575feba80
9 changed files with 166 additions and 17 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();