Skip to content

Conversation

@mraible
Copy link
Contributor

@mraible mraible commented Oct 31, 2025

This PR adds comprehensive E2E testing for the ServiceNow IDP sample app using Playwright.

Test Coverage

  • App installation with ServiceNow API integration configuration
  • Workflow action verification in Fusion SOAR
  • API integration registration verification
  • App uninstall as teardown

Test Results

All 4 tests passing:

  • Setup: Authentication
  • App installation with configuration
  • ServiceNow API integration action verification
  • Teardown: App uninstall

Total runtime: ~1.5 minutes

Key Implementation Details

  • Uses resolvable hostname (https://example.com) to pass backend validation
  • Skips workflow provisioning during installation (provision_on_install: false)
  • Verifies ServiceNow CMDB Table API action is available in workflow builder
  • Follows established E2E patterns from other foundry-sample projects

@mraible mraible force-pushed the add-e2e-tests branch 2 times, most recently from 2fd84c1 to 563ca07 Compare November 3, 2025 16:52
@mraible mraible marked this pull request as ready for review November 3, 2025 19:18
@mraible mraible force-pushed the add-e2e-tests branch 3 times, most recently from 8e8be5d to 96de518 Compare November 4, 2025 23:54
Addresses PR feedback from Javier to avoid mixing import/require syntax
- Update AppCatalogPage waitForInstallation() to wait for both 'installing' and 'installed' toast messages sequentially
- Update foundry.spec.ts workflow action verification to handle stale actions from previous installs
- Check for 'Configure' heading as indicator of valid current action vs stale action
…k extraction

- Rename configureServiceNowIfNeeded() to configureApiIntegrationIfNeeded()
- Add comprehensive documentation explaining the method is designed for framework extraction
- Note that method is a no-op for apps without API integrations
- Mark with @future-framework-extraction tag for easy identification during extraction
This app has no UI/pages, so this method is not needed.
mraible and others added 3 commits November 7, 2025 10:19
- Create new AppBuilderPage with disableWorkflowProvisioning method
- Navigate to App Builder and disable provision_on_install for all workflows
- Deploy and release changes so they're available for installation
- Update app-install.setup.ts to call disableWorkflowProvisioning
- Remove run-e2e-local.sh as it's no longer needed
- This prevents E2E test failures due to missing external API credentials

Co-Authored-By: Claude <[email protected]>
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.

2 participants