tests: Fix the test with the proper data.
This commit is contained in:
parent
5526a3f4d2
commit
6841b5fc0f
2 changed files with 6 additions and 4 deletions
|
@ -393,7 +393,10 @@ export const SCHEMA = {
|
||||||
inheritable: true,
|
inheritable: true,
|
||||||
default: 1.0,
|
default: 1.0,
|
||||||
},
|
},
|
||||||
sortKey: { impacts: ['data', 'datalayer-index'], type: String },
|
sortKey: {
|
||||||
|
type: String,
|
||||||
|
impacts: ['datalayer-index', 'data'],
|
||||||
|
},
|
||||||
starControl: {
|
starControl: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
impacts: ['ui'],
|
impacts: ['ui'],
|
||||||
|
|
|
@ -128,7 +128,7 @@ def test_sortkey_impacts_datalayerindex(map, live_server, page):
|
||||||
"type": "Point",
|
"type": "Point",
|
||||||
"coordinates": [13.7, 48.4],
|
"coordinates": [13.7, 48.4],
|
||||||
},
|
},
|
||||||
"properties": {"name": "Y Second", "key": "3d Point"},
|
"properties": {"name": "Y Second", "key": "2d Point"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "Feature",
|
"type": "Feature",
|
||||||
|
@ -136,7 +136,7 @@ def test_sortkey_impacts_datalayerindex(map, live_server, page):
|
||||||
"type": "Point",
|
"type": "Point",
|
||||||
"coordinates": [13.5, 48.6],
|
"coordinates": [13.5, 48.6],
|
||||||
},
|
},
|
||||||
"properties": {"name": "X Third", "key": "2d Point"},
|
"properties": {"name": "X Third", "key": "3rd Point"},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -175,7 +175,6 @@ def test_sortkey_impacts_datalayerindex(map, live_server, page):
|
||||||
page.locator("div:nth-child(4) > div:nth-child(2) > .button").first.click()
|
page.locator("div:nth-child(4) > div:nth-child(2) > .button").first.click()
|
||||||
|
|
||||||
# Features should be sorted by key (First, Second, Third)
|
# Features should be sorted by key (First, Second, Third)
|
||||||
page.get_by_role("button", name="See data layers").click()
|
|
||||||
page.get_by_role("button", name="Browse data").click()
|
page.get_by_role("button", name="Browse data").click()
|
||||||
|
|
||||||
first_listed_feature = page.locator("#browse_data_datalayer_123 > ul > li").nth(0)
|
first_listed_feature = page.locator("#browse_data_datalayer_123 > ul > li").nth(0)
|
||||||
|
|
Loading…
Reference in a new issue