Skip to content

Commit

Permalink
changing test file to correct input data for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devind-ra committed Feb 3, 2025
1 parent 1cd42c6 commit ff798a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/features/scenarios/adoption/child-live-in-date.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { expect } = require('@playwright/test')
const test = require('../../fixtures/adoption/select-partners-leave-and-pay')
const checkUrl = require('../../helpers/general')
const currentYear = new Date().getFullYear()

test.describe('child live-in date page', () => {
test.beforeEach(async ({ setupPartnersLeaveAndPay }) => {})
Expand Down Expand Up @@ -34,7 +35,7 @@ test.describe('child live-in date page', () => {
}) => {
await page.getByRole('textbox', { name: 'Day' }).fill('1')
await page.getByRole('textbox', { name: 'Month' }).fill('1')
await page.getByRole('textbox', { name: 'Year' }).fill('2024')
await page.getByRole('textbox', { name: 'Year' }).fill(currentYear.toString())

await page.click('button:text("Continue")')

Expand All @@ -50,7 +51,7 @@ test.describe('child live-in date page', () => {
}) => {
await page.getByRole('textbox', { name: 'Day' }).fill('50')
await page.getByRole('textbox', { name: 'Month' }).fill('1')
await page.getByRole('textbox', { name: 'Year' }).fill('2024')
await page.getByRole('textbox', { name: 'Year' }).fill(currentYear.toString())

await page.click('button:text("Continue")')

Expand Down

0 comments on commit ff798a1

Please sign in to comment.