Skip to content

Conversation

@Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #20472

Problem Statement

The UI test test_view_flatpak_remotes was failing due to a regression. When searching for a flatpak repository by name (e.g., "org.kicad.kicad"), the UI search performs partial/substring matching and returns multiple results including repos with similar names (e.g., "org.kicad.kicad.Library"). The test was asserting len(details['table']) == 1, which failed when multiple partial matches were returned.

Solution

Updated the test to handle partial search matches:

  • Changed assertion from len(details['table']) == 1 to len(details['table']) > 0 to accept multiple search results
  • Added filtering logic to find the exact matching repository from the search results
  • Assert that exactly one exact match exists and validate its attributes (Name, ID, Last mirrored status)

Related Issues

PRT test Cases

trigger: test-robottelo
pytest: tests/foreman/ui/test_flatpak.py -k 'test_view_flatpak_remotes'

@Satellite-QE Satellite-QE added 6.18.z Introduced in or relating directly to Satellite 6.18 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Dec 12, 2025
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_flatpak.py -k 'test_view_flatpak_remotes'

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 13823
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/ui/test_flatpak.py -k test_view_flatpak_remotes --external-logging
Test Result : =========== 1 failed, 1 deselected, 6 warnings in 939.06s (0:15:39) ============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.18.z Introduced in or relating directly to Satellite 6.18 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches PRT-Failed Indicates that latest PRT run is failed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants