waiting for alert message after host delete - #1891
Merged
LadislavVasina1 merged 1 commit intoJun 24, 2025
Merged
Conversation
Contributor
Reviewer's GuideThe PR enhances the host deletion flow by introducing an explicit wait for the 'Successfully deleted' flash message with a 120-second timeout to address timing inconsistencies in Azure. Sequence diagram for updated host deletion flowsequenceDiagram
actor Tester
participant HostEntity as Host Entity
participant View as UI View
participant Browser
Tester->>HostEntity: delete(entity_name)
HostEntity->>View: search(entity_name)
HostEntity->>View: table.row(name=entity_name)['Actions'].widget.fill('Delete')
HostEntity->>Browser: handle_alert()
HostEntity->>View: wait_for(flash.assert_message('Successfully deleted ...'), timeout=120)
HostEntity->>View: flash.assert_no_error()
HostEntity->>View: flash.dismiss()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey @amolpati30 - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
amolpati30
force-pushed
the
wait_for_alert_msg_after_host_delete
branch
from
June 23, 2025 19:06
e52f214 to
393c285
Compare
Contributor
Author
|
trigger: test-robottelo |
sambible
approved these changes
Jun 23, 2025
sambible
left a comment
Contributor
There was a problem hiding this comment.
Seems reasonable, but these always look like reasonable changes on paper, if PRT proves it out I'm fine with merging.
LadislavVasina1
approved these changes
Jun 24, 2025
LadislavVasina1
left a comment
Contributor
There was a problem hiding this comment.
ACK, @amolpati30 keep an eye on the automation results too
github-actions Bot
pushed a commit
that referenced
this pull request
Jun 24, 2025
(cherry picked from commit 83801dc)
github-actions Bot
pushed a commit
that referenced
this pull request
Jun 24, 2025
(cherry picked from commit 83801dc)
github-actions Bot
pushed a commit
that referenced
this pull request
Jun 24, 2025
(cherry picked from commit 83801dc)
This was referenced Jun 24, 2025
Satellite-QE
added a commit
that referenced
this pull request
Jun 25, 2025
Satellite-QE
added a commit
that referenced
this pull request
Jun 25, 2025
Gauravtalreja1
pushed a commit
that referenced
this pull request
Jul 1, 2025
(cherry picked from commit 83801dc)
Gauravtalreja1
pushed a commit
that referenced
this pull request
Jul 7, 2025
(cherry picked from commit 83801dc)
Gauravtalreja1
pushed a commit
that referenced
this pull request
Jul 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This test
tests.foreman.ui.test_computeresource_azurerm.test_positive_end_to_end_azurerm_ft_host_provisionis inconsistent — it passes sometimes and fails other times. In Azure, deleting a host take some time, so I'm adding a check to look for the 'delete' message to avoid failures.Summary by Sourcery
Add explicit wait for the success alert message after deleting a host to prevent intermittent test failures
Bug Fixes:
Enhancements: