chore: fix test

This action is managed in the header panel, thus it's not a button.
We may make all header actions proper buttons, but maybe in another
PR ?
This commit is contained in:
Yohan Boniface 2024-03-12 22:37:50 +01:00
parent a360ca0e13
commit e4ecb1a847
3 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ def test_can_change_perms_after_create(tilelayer, live_server, page):
page.goto(f"{live_server.url}/en/map/new")
# Create a layer
page.get_by_title("See layers").click()
page.get_by_role("button", name="Add a layer").click()
page.get_by_title("Add a layer").click()
page.locator("input[name=name]").fill("Layer 1")
save = page.get_by_role("button", name="Save")
expect(save).to_be_visible()

View file

@ -17,7 +17,7 @@ def test_should_have_fieldset_for_layer_type_properties(page, live_server, tilel
button.click()
# Create a layer
page.get_by_role("button", name="Add a layer").click()
page.get_by_title("Add a layer").click()
page.locator("input[name=name]").fill("Layer 1")
select = page.locator("#umap-panel .umap-field-type select")

View file

@ -187,7 +187,7 @@ def test_can_change_perms_after_create(tilelayer, live_server, login, user):
page.goto(f"{live_server.url}/en/map/new")
# Create a layer
page.get_by_title("See layers").click()
page.get_by_role("button", name="Add a layer").click()
page.get_by_title("Add a layer").click()
page.locator("input[name=name]").fill("Layer 1")
save = page.get_by_role("button", name="Save")
expect(save).to_be_visible()