lint
This commit is contained in:
1 parent
fc250c54ed
commit
5eec516459
62 files changed
+3912
-3376
No files matched your search
+15
-15
@@ -1,38 +1,38 @@
|
||||
import { test, expect, beforeAll, afterAll } from '../fixtures.mjs'
|
||||
import { afterAll, beforeAll, expect, test } from '../fixtures.mjs';
|
||||
|
||||
test.beforeAll(beforeAll)
|
||||
test.afterAll(afterAll)
|
||||
test.beforeAll(beforeAll);
|
||||
test.afterAll(afterAll);
|
||||
|
||||
// @ts-expect-error: `util` is not using types in playwright
|
||||
test('Document element check', async ({ page, util }) => {
|
||||
try {
|
||||
await expect(
|
||||
page.getByTestId('main-logo').first(),
|
||||
`Confirm main logo is visible`
|
||||
).toBeVisible()
|
||||
`Confirm main logo is visible`,
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByTestId('select-language').first(),
|
||||
`Confirm language selector is visible`
|
||||
).toBeVisible()
|
||||
`Confirm language selector is visible`,
|
||||
).toBeVisible();
|
||||
|
||||
await util.captureScreenshot(page, 'result')
|
||||
await util.captureScreenshot(page, 'result');
|
||||
} catch (error) {
|
||||
throw await util.onTestError(error)
|
||||
throw await util.onTestError(error);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// @ts-expect-error: `util` is not using types in playwright
|
||||
test('Counter button click check', async ({ page, util }) => {
|
||||
try {
|
||||
await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 })
|
||||
await page.getByTestId('btn-counter').click({ clickCount: 10, delay: 50 });
|
||||
|
||||
const counterValueElement = await page
|
||||
.getByTestId('counter-badge')
|
||||
.getByRole('status')
|
||||
.innerHTML()
|
||||
.innerHTML();
|
||||
|
||||
expect(counterValueElement).toBe('10')
|
||||
expect(counterValueElement).toBe('10');
|
||||
} catch (error) {
|
||||
throw await util.onTestError(error)
|
||||
throw await util.onTestError(error);
|
||||
}
|
||||
})
|
||||
});
|
||||
Reference in new issue
Block a user