mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-29 10:55:09 +00:00
fix(test): AUT for ExploreSortOrder (#23389)
* fix exploreSortOrder test * minor fix
This commit is contained in:
parent
7325435030
commit
6e29d1b87e
@ -10,7 +10,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { test } from '@playwright/test';
|
||||
import { expect, test } from '@playwright/test';
|
||||
import { DATA_ASSETS_SORT } from '../../constant/explore';
|
||||
import { SidebarItem } from '../../constant/sidebar';
|
||||
import { EntityDataClass } from '../../support/entity/EntityDataClass';
|
||||
@ -95,25 +95,14 @@ test.describe('Explore Sort Order Filter', () => {
|
||||
await page.getByTestId('update-btn').click();
|
||||
|
||||
await selectSortOrder(page, 'Name');
|
||||
await page.waitForLoadState('networkidle');
|
||||
await verifyEntitiesAreSorted(page);
|
||||
|
||||
await page.getByTestId('search-dropdown-Data Assets').click();
|
||||
const clearFilters = page.getByTestId('clear-filters');
|
||||
|
||||
await page.waitForSelector(
|
||||
'[data-testid="drop-down-menu"] [data-testid="loader"]',
|
||||
{
|
||||
state: 'detached',
|
||||
}
|
||||
);
|
||||
expect(clearFilters).toBeVisible();
|
||||
|
||||
await page.waitForSelector(
|
||||
`[data-testid="${filter.toLowerCase()}-checkbox"]`,
|
||||
{
|
||||
state: 'visible',
|
||||
}
|
||||
);
|
||||
await page.getByTestId(`${filter.toLowerCase()}-checkbox`).uncheck();
|
||||
await page.getByTestId('update-btn').click();
|
||||
await clearFilters.click();
|
||||
|
||||
await afterAction();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user