import { test, expect } from '@playwright/test';
test('test', async ({ page }) => {
await page.goto('https://sandy.compas.siemens-info.com/');
await page.getByRole('button', { name: 'Sign in' }).click();
await page.getByRole('textbox', { name: '* Username' }).click();
await page.getByRole('textbox', { name: '* Username' }).fill('augustine.jebakumar');
await page.getByRole('textbox', { name: '* Username' }).press('Tab');
await page.getByRole('textbox', { name: '* Password' }).fill('Compas1234$$');
await page.getByRole('button', { name: 'Sign in' }).click();
await page.getByRole('textbox', { name: '* Password' }).click();
await page.getByRole('textbox', { name: '* Password' }).fill('Compas123$$');
await page.getByRole('button', { name: 'Sign in' }).click();
await page.getByRole('link').nth(5).click();
await page.getByRole('link', { name: 'Articles' }).click();
await page.getByRole('button', { name: '+', description: 'Add new' }).click();
await page.locator('#entry_type').selectOption('22');
await page.getByRole('textbox', { name: 'Start typing a category name' }).click();
await page.getByRole('textbox', { name: 'Start typing a category name' }).fill('rele');
await page.getByText('Releases / Announcements').click();
await page.locator('#title').click();
await page.locator('#title').fill('Test Title');
await page.locator('iframe[title="Rich Text Editor, body"]').contentFrame().locator('html').click();
await page.getByRole('button', { name: 'Source' }).click();
await page.getByRole('textbox', { name: 'Rich Text Editor, body' }).click();
await page.getByRole('textbox', { name: 'Rich Text Editor, body' }).fill('npx.cmd playwright codegen https://sandy.compas.siemens-info.com/');
await page.getByRole('button', { name: 'Publish' }).click();
});
This article was: