Skip to content

Commit

Permalink
test: Fix race in TestFiles.testUpload
Browse files Browse the repository at this point in the history
The `#sidebar-card-header` also contains the file type, which appears a
moment after clicking on the file name. Make the selector more specific
to not include the file type component.
  • Loading branch information
martinpitt committed Aug 12, 2024
1 parent a6b051d commit 4ef7efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ class TestFiles(testlib.MachineCase):
# Verify ownership
filename = os.path.basename(files[0])
b.click(f"[data-item='{filename}']")
b.wait_text("#sidebar-card-header", filename)
b.wait_text("#sidebar-card-header h2", filename)
b.wait_text("#description-list-owner dd", "admin")
b.wait_text("#description-list-group dd", "admin")

Expand Down

0 comments on commit 4ef7efa

Please sign in to comment.