Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(demo-playwright): implement icons customization tests #5607

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
project: [addon-doc, addon-commerce, addon-mobile, addon-table, addon-tablebars, icons, core, deep, kit]
project: [addon-doc, addon-commerce, addon-mobile, addon-table, addon-tablebars, core, deep, kit]
name: ${{ matrix.project }}
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down

This file was deleted.

aotulana marked this conversation as resolved.
Show resolved Hide resolved
aotulana marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

const {describe, beforeEach} = test;

describe(`Icons Customization`, () => {
describe(`Examples`, () => {
let documentationPage: TuiDocumentationPagePO;

beforeEach(async ({page}) => {
await tuiGoto(page, `icons/customization`);

documentationPage = new TuiDocumentationPagePO(page);
});

test(`custom names`, async () => {
const example = documentationPage.getExample(`#base`);

await expect(example).toHaveScreenshot(`01-custom-names.png`);
nsbarsukov marked this conversation as resolved.
Show resolved Hide resolved
});

test(`custom styles`, async () => {
const example = documentationPage.getExample(`#styles`);

await expect(example).toHaveScreenshot(`02-custom-styles.png`);
nsbarsukov marked this conversation as resolved.
Show resolved Hide resolved
});
});
});