Skip to content

Commit

Permalink
regrouped all the certified copy tests for birth
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq89 committed Jan 1, 2025
1 parent ac27275 commit faca4e2
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { getAction } from '../../helpers'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('Certified copies', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test, type Page } from '@playwright/test'
import { format, parseISO } from 'date-fns'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('7.0 Validate collect payment page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'
import { format } from 'date-fns'
import { CLIENT_URL } from '../../constants'
import { CLIENT_URL } from '../../../constants'

test.describe
.serial('7.0 Validate the following for "Certify record" page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'
import { format } from 'date-fns'
import { CLIENT_URL } from '../../constants'
import { CLIENT_URL } from '../../../constants'

test.describe.serial('8.0 Validate the following for "Payment" page', () => {
let declaration: BirthDeclaration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('9.0 Validate the following for "Payment" page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('10.0 Validate the following for "Review" page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('11.0 Validate the following for "Review" page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe.serial('12.0 Validate the following for "Review" page', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, type Page } from '@playwright/test'
import { BirthDeclaration } from '../birth/types'
import { BirthDeclaration } from '../../birth/types'
import { getDeclarationForPrintCertificate } from './certificate-helper'

test.describe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { faker } from '@faker-js/faker'
import { expect, type Page } from '@playwright/test'
import { CREDENTIALS } from '../../constants'
import { getToken, login, createPIN, getAction } from '../../helpers'
import { CREDENTIALS } from '../../../constants'
import { getToken, login, createPIN, getAction } from '../../../helpers'
import {
ConvertEnumsToStrings,
createDeclaration,
fetchDeclaration
} from '../birth/helpers'
import { BirthInputDetails, BirthDeclaration } from '../birth/types'
} from '../../birth/helpers'
import { BirthInputDetails, BirthDeclaration } from '../../birth/types'

export async function getDeclarationForPrintCertificate(
page: Page,
Expand Down

0 comments on commit faca4e2

Please sign in to comment.