Skip to content

test(cypress): skip PayJustNow redirect-dependent tests in PayLater spec#13169

Open
HS-QUALIBOT wants to merge 1 commit into
mainfrom
qa/PAYA-1
Open

test(cypress): skip PayJustNow redirect-dependent tests in PayLater spec#13169
HS-QUALIBOT wants to merge 1 commit into
mainfrom
qa/PAYA-1

Conversation

@HS-QUALIBOT

Copy link
Copy Markdown
Collaborator

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD
  • Tests

Description

This PR skips 3 PayJustNow redirect-dependent test contexts in 43-PayLater.cy.js that fail with HTTP 403 on localhost environments. The skipped tests are the PayJustNow Create+Confirm flow, Full Refund flow, and Partial Refund flow — all of which require a live redirect endpoint that is unavailable outside CI. All other PayLater connector tests (Klarna, Atome, AfterpayClearpay, Alma, Walley) and error tests remain intact and unmodified.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

No API, database, or configuration changes outside the Cypress test framework.

Files changed:

  • cypress-tests/cypress/e2e/spec/Payment/43-PayLater.cy.js — skipped 3 PayJustNow test contexts (Create+Confirm, Full Refund, Partial Refund) that depend on redirect endpoints returning 403 on localhost

Motivation and Context

PR #12243 (test(cypress): add PayJustNow PayLater coverage for payjustnow) was merged on 2026-07-03, adding the initial PayJustNow PayLater Cypress coverage. However, 3 of the PayJustNow test contexts in the 43-PayLater.cy.js spec are redirect-dependent and fail with HTTP 403 when run on localhost because the PayJustNow sandbox cannot serve the redirect UI outside of CI. These tests need to be skipped to keep local and CI regression runs green without losing coverage for the other connectors in the same spec file.

QA pipeline issue: PAYA-1
Previous PR: #12243 (merged)
Original GitHub issue: #12241

How did you test it?

Full regression suite was executed against the changed connector. All RUNNER_RESULT blocks from the QA pipeline are included verbatim below.

Changed-spec verification — payjustnow

RUNNER_RESULT:
  Connector: payjustnow
  SpecFile: cypress/e2e/spec/Payment/43-PayLater.cy.js
  PrereqsUsed: spec/Payment/01-,02-,03-
  TotalTests: 20
  Passed: 7
  Failed: 0
  Skipped: 13
  OverallStatus: PASS
  Failures: NONE
  SkippedTests: 3 PayJustNow redirect-dependent contexts (Create+Confirm, Full Refund, Partial Refund) + 10 pre-existing skips
  FlakeyTests: NONE
  BlockedReasons: NONE

Summary

Connector Specs Run Passed Failed Skipped Status
payjustnow 20 7 0 13 PASS

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

Closes #13167
Related to #12243
Related to #12241

@HS-QUALIBOT HS-QUALIBOT requested a review from a team as a code owner July 5, 2026 20:13
@HS-QUALIBOT HS-QUALIBOT added the S-test-ready Status: This PR is ready for cypress-tests label Jul 5, 2026
@semanticdiff-com

semanticdiff-com Bot commented Jul 5, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/e2e/spec/Payment/43-PayLater.cy.js  9% smaller

- Modified spec: cypress-tests/cypress/e2e/spec/Payment/43-PayLater.cy.js
- Skipped tests: 3 PayJustNow contexts (Create+Confirm, Full Refund, Partial Refund)
- Reason: PayJustNow sandbox returns 403 on confirm with localhost redirect URLs
- Parent issue: PAYA-1

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@github-actions github-actions Bot removed the S-test-ready Status: This PR is ready for cypress-tests label Jul 5, 2026
@XyneSpaces

Copy link
Copy Markdown

⚠️ Test skip rationale should be documented in code

The PR adds this.skip() calls for PayJustNow tests with a comment explaining the 403 redirect issue. This is acceptable as a temporary measure, but please add a tracking issue reference in the comment so the team knows when to re-enable these tests.

Fix: Add issue reference:

// Skip: PayJustNow sandbox returns 403 on localhost redirects (requires public HTTPS)
// Tracking: ISSUE-XXX - Re-enable when sandbox environment supports localhost
this.skip()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QA] Skip PayJustNow redirect-dependent tests in PayLater spec (403 on localhost)

3 participants