Skip to content
Snippets Groups Projects
Commit 6a9ac950 authored by Sakthi Shanmuga Sundaram M's avatar Sakthi Shanmuga Sundaram M Committed by Chris Wells
Browse files

Issue #3365678 by sakthi_dev, chrisfromredfin, marcoliver, bcgreen, Zarpele:...

Issue #3365678 by sakthi_dev, chrisfromredfin, marcoliver, bcgreen, Zarpele: Change sort terminology
parent 3d4c6e5d
No related branches found
Tags 1.0.0-beta5
No related merge requests found
......@@ -128,7 +128,7 @@ abstract class ProjectBrowserSourceBase extends PluginBase implements ProjectBro
return [
'usage_total' => [
'id' => 'usage_total',
'text' => $this->t('Active installs'),
'text' => $this->t('Most Popular'),
],
'a_z' => [
'id' => 'a_z',
......@@ -140,11 +140,11 @@ abstract class ProjectBrowserSourceBase extends PluginBase implements ProjectBro
],
'created' => [
'id' => 'created',
'text' => $this->t('Recently created'),
'text' => $this->t('Newest First'),
],
'best_match' => [
'id' => 'best_match',
'text' => $this->t('Best match'),
'text' => $this->t('Most Relevant'),
],
];
}
......
......@@ -434,10 +434,10 @@ class ProjectBrowserUiTest extends WebDriverTestBase {
$this->svelteInitHelper('text', 'Clear Filters');
$this->pressWithWait('Clear filters');
$assert_session->elementsCount('css', '#pb-sort option', 4);
$this->assertEquals('Active installs', $this->getElementText('#pb-sort option:nth-child(1)'));
$this->assertEquals('Most Popular', $this->getElementText('#pb-sort option:nth-child(1)'));
$this->assertEquals('A-Z', $this->getElementText('#pb-sort option:nth-child(2)'));
$this->assertEquals('Z-A', $this->getElementText('#pb-sort option:nth-child(3)'));
$this->assertEquals('Recently created', $this->getElementText('#pb-sort option:nth-child(4)'));
$this->assertEquals('Newest First', $this->getElementText('#pb-sort option:nth-child(4)'));
// Select 'A-Z' sorting order.
$this->sortBy('a_z');
......@@ -495,7 +495,7 @@ class ProjectBrowserUiTest extends WebDriverTestBase {
'Kangaroo',
]);
// Select 'Recently created' option.
// Select 'Newest First' option.
$this->sortBy('created');
// Assert that the projects are listed in descending order of their date of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment