Skip to content

Commit

Permalink
fix: fixed page.url().includes()
Browse files Browse the repository at this point in the history
  • Loading branch information
jamil314 committed Jun 14, 2024
1 parent 6e4ba6c commit 3665a26
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ test.describe.serial('8. Validate declaration review page', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await page.getByRole('button', { name: 'Sent for review' }).click()
await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
Expand Down Expand Up @@ -1244,7 +1244,7 @@ test.describe.serial('8. Validate declaration review page', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await page.getByRole('button', { name: 'Sent for approval' }).click()
await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
Expand Down Expand Up @@ -1494,7 +1494,7 @@ test.describe.serial('8. Validate declaration review page', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await page.getByRole('button', { name: 'Ready to print' }).click()
await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ test.describe.serial('1. Death declaration case - 1', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ test.describe.serial('10. Death declaration case - 10', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ test.describe.serial('2. Death declaration case - 2', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ test.describe.serial('3. Death declaration case - 3', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ test.describe.serial('4. Death declaration case - 4', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ test.describe.serial('5. Death declaration case - 5', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ test.describe.serial('6. Death declaration case - 6', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
5 changes: 0 additions & 5 deletions e2e/testcases/death/declaration/death-declaration-7.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,6 @@ test.describe.serial('7. Death declaration case - 7', () => {
await page.locator('#submit_confirm').click()
await expect(page.getByText('Farajaland CRS')).toBeVisible()

/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ test.describe.serial('8. Death declaration case - 8', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ test.describe.serial('9. Death declaration case - 9', () => {
/*
* Expected result: should redirect to registration home
*/
expect(page.url().includes('registration-home'))
expect(page.url().includes('registration-home')).toBeTruthy()

await expect(page.locator('#navigation_outbox')).not.toContainText('1', {
timeout: 1000 * 30
Expand Down

0 comments on commit 3665a26

Please sign in to comment.