Skip to content

Commit 676ba73

Browse files
[E2E] Fix sort order test
# Conflicts: # front/e2e/src/tests/pages/admin/settings/attributes.spec.ts
1 parent 2f76bc9 commit 676ba73

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

front/e2e/src/tests/pages/admin/search/facets.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ const texts = {
6060
],
6161
sortOrderOptions: [
6262
'Result count',
63-
'Admin sort',
64-
'Name',
63+
'Admin sort - slow',
64+
'Name (A → Z)',
65+
'Name (Z → A) - slow',
66+
'Natural sort (A → Z) - slow',
67+
'Natural sort (Z → A) - slow',
6568
],
6669
noCustomValuesMessage: "You don't have any custom value",
6770
customValuesMessage: (nb: number) => `You are using ${nb} custom value${nb > 1 ? 's' : ''}`

front/e2e/src/tests/pages/admin/settings/searchableAndFilterablesAttributes.spec.ts renamed to front/e2e/src/tests/pages/admin/settings/attributes.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,22 @@ const texts = {
6767
paginationOptions: ['10', '25', '50'],
6868
tabs: {
6969
scope: 'Scope',
70-
searchableAndFilterableAttributes: 'Attributes',
70+
attributes: 'Attributes',
7171
configurations: 'Configurations',
7272
users: 'Users',
7373
}
7474
}
7575

76-
test('Pages > Settings > Tab > Searchable and Filterable attributes', {tag: ['@premium', '@standard']}, async ({
76+
test('Pages > Settings > Tab > Attributes', {tag: ['@premium', '@standard']}, async ({
7777
page,
7878
}) => {
79-
await test.step('Login and navigate to Searchable and Filterable attributes in the Settings page', async () => {
79+
await test.step('Login and navigate to Attributes in the Settings page', async () => {
8080
await login(page)
8181
await navigateTo(page, 'Settings', '/admin/settings/scope/catalogs')
8282

8383
const tabs = new Tabs(page)
8484
await tabs.expectToHaveTabs(Object.values(texts.tabs))
85-
await tabs.navigateTo(texts.tabs.searchableAndFilterableAttributes, '/admin/settings/attributes')
85+
await tabs.navigateTo(texts.tabs.attributes, '/admin/settings/attributes')
8686
})
8787

8888
const grid = new Grid(page, resourceName)

0 commit comments

Comments
 (0)