Skip to content

Commit

Permalink
LPD-46949 SF
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-ortega committed Feb 19, 2025
1 parent b341e48 commit 047802b
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,25 @@ const test = mergeTests(
let fdsSamplePageURL: string;

test.beforeEach(async ({fdsSamplePage, page, site}) => {
const locale = 'es';
const locale = 'es';

const {url} = await fdsSamplePage.setupFDSSampleWidget({site, locale});

fdsSamplePageURL = url;

await fdsSamplePage.selectTab('Classic');

await expect(
page.getByText('test@liferay.com')
).toBeVisible();
await expect(page.getByText('test@liferay.com')).toBeVisible();
});

test(
'Assert the details shown in the FDS table',
{tag: '@LPS-162792'},
async ({fdsSamplePage}) => {

await test.step('Check headers are localized in Spanish', async () => {
expect(
await fdsSamplePage.table.headerCells
.allInnerTexts()
expect(
await fdsSamplePage.table.headerCells.allInnerTexts()
).toEqual(['Nombre', 'Apellido', 'Dirección de correo', '']);
});

}
);
);

0 comments on commit 047802b

Please sign in to comment.