Skip to content

Commit

Permalink
add testcase where pasting fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus committed Jan 14, 2025
1 parent 4e29ac6 commit abcaad5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2076,8 +2076,6 @@ class TestFiles(testlib.MachineCase):
b.click("button[aria-label='Display as a list']")
b.go("/files#/?path=/home/admin")
self.assert_last_breadcrumb("admin")
b.go("files#/?path=/home/admin")
self.assert_last_breadcrumb("admin")
m.execute("useradd -m foouser")

b.click("[data-item='newfile']")
Expand Down Expand Up @@ -2160,6 +2158,22 @@ class TestFiles(testlib.MachineCase):
b.click("#paste-owner-modal button.pf-m-primary")
b.wait_in_text("[data-item='adminfoofile'] .item-owner", "admin:foouser")

# Pasting files fails
b.go("files#/?path=/home/admin")
self.assert_last_breadcrumb("admin")
b.click("[data-item='adminfoofile']")
b.click("#dropdown-menu")
b.click("#copy-item")
b.go("files#/?path=/proc")
self.assert_last_breadcrumb("proc")
b.click("#dropdown-menu")
b.click("#paste-item")
b.wait_visible("#paste-owner-modal")
b.click("#paste-owner-modal button.pf-m-primary")
b.wait_visible(".pf-v5-c-alert.pf-m-danger")
b.wait_not_present("#paste-owner-modal")
b.click(".pf-v5-c-alert__action button")

b.go("files#/?path=/home/admin")
self.assert_last_breadcrumb("admin")
b.click("[data-item='newdir']")
Expand Down

0 comments on commit abcaad5

Please sign in to comment.