Tables

Tables

Intermediate
RoleStatus
MiraAdminActive
AlexEngineerActive
NoorQAInvited
YukiManagerSuspended

Live widget · interact freely

Manual test goal

Sort a column ascending/descending and validate the first/last row update accordingly.

Expected result

Sorting Name asc puts 'Alex' first; toggling to desc puts 'Yuki' first.

Stable selectors

  • Sort by Name[data-testid="tbl-sort-name"]
  • First row[data-testid="tbl-row-0"]

Reference Playwright spec

tables.spec.ts
ts
1
2
3
4
5
6
7
8
9
10
11
import { test, expect } from '@playwright/test';

test('table sort cycles asc/desc', async ({ page }) => {
  await page.goto('https://lab.hakdogan.com/practice/tables');

  await page.getByTestId('tbl-sort-name').click();
  await expect(page.getByTestId('tbl-row-0')).toContainText('Alex');

  await page.getByTestId('tbl-sort-name').click();
  await expect(page.getByTestId('tbl-row-0')).toContainText('Yuki');
});

Demo Simulator

Simulated Playwright run · no real browser is launched

Idletables.spec.ts
https://lab.hakdogan.com/practice/tables
# console output will stream here