Skip to content

Commit 48fc91d

Browse files
committed
Add: end-to-end tests for the File namespace
1 parent a13fadd commit 48fc91d

12 files changed

Lines changed: 492 additions & 4 deletions

File tree

e2e/e2e_edit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def test_create_page_again(page: Page, login):
6666
page.wait_for_url("/edit/en/Main%20Page")
6767

6868
page.locator("[name=content]").fill(
69-
"[[Translation:en/Main Page]]\nMy Third Edit\n\n[[Category:en/MyPages]]\n{{en/Summary}}\n{{Page:en/Empty}}"
69+
"[[Translation:en/Main Page]]\nMy Third Edit\n\n[[Category:en/MyPages]]\n{{en/Summary}}"
70+
"\n{{Page:en/Empty}}\n[[File:en/Test.png]]\n[[Media:en/Test.png]]"
7071
)
7172
with page.expect_navigation():
7273
page.locator("[name=save]").click()
@@ -75,6 +76,7 @@ def test_create_page_again(page: Page, login):
7576
expect(page).to_have_title("Unnamed | Unnamed's Wiki")
7677
expect(page.locator("text=My Third Edit")).to_be_visible()
7778
expect(page.locator("text=Page:en/Empty")).to_be_visible()
79+
expect(page.locator("text=File:en/test.png")).to_be_visible()
7880

7981

8082
def test_rename_page_again(page: Page, login):

0 commit comments

Comments
 (0)