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:
parent
a360ca0e13
commit
e4ecb1a847
3 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ def test_can_change_perms_after_create(tilelayer, live_server, page):
|
||||||
page.goto(f"{live_server.url}/en/map/new")
|
page.goto(f"{live_server.url}/en/map/new")
|
||||||
# Create a layer
|
# Create a layer
|
||||||
page.get_by_title("See layers").click()
|
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")
|
page.locator("input[name=name]").fill("Layer 1")
|
||||||
save = page.get_by_role("button", name="Save")
|
save = page.get_by_role("button", name="Save")
|
||||||
expect(save).to_be_visible()
|
expect(save).to_be_visible()
|
||||||
|
|
|
@ -17,7 +17,7 @@ def test_should_have_fieldset_for_layer_type_properties(page, live_server, tilel
|
||||||
button.click()
|
button.click()
|
||||||
|
|
||||||
# Create a layer
|
# 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")
|
page.locator("input[name=name]").fill("Layer 1")
|
||||||
|
|
||||||
select = page.locator("#umap-panel .umap-field-type select")
|
select = page.locator("#umap-panel .umap-field-type select")
|
||||||
|
|
|
@ -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")
|
page.goto(f"{live_server.url}/en/map/new")
|
||||||
# Create a layer
|
# Create a layer
|
||||||
page.get_by_title("See layers").click()
|
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")
|
page.locator("input[name=name]").fill("Layer 1")
|
||||||
save = page.get_by_role("button", name="Save")
|
save = page.get_by_role("button", name="Save")
|
||||||
expect(save).to_be_visible()
|
expect(save).to_be_visible()
|
||||||
|
|
Loading…
Reference in a new issue