"README.md" did not exist on "8fc7f031f29295ee9bdcce7bd2fd11bcac62601f"
chore(deps): update all non-major dependencies
Compare changes
On May, 7th between 17:45 and 22:00 gitlab.tugraz.at is maybe not available (Reason: maintenance work / gitlab updates).
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
glob | devDependencies | patch | 8.0.1 -> 8.0.3 |
i18next (source) | dependencies | patch | 21.8.0 -> 21.8.2 |
karma (source) | devDependencies | patch | 6.3.19 -> 6.3.20 |
pdfjs-dist (source) | dependencies | minor | 2.13.216 -> 2.14.305 |
playwright-core (source) | devDependencies | minor | 1.21.1 -> 1.22.0 |
rollup (source) | devDependencies | minor | 2.72.1 -> 2.73.0 |
v21.8.2
v21.8.1
v1.22.0
Playwright Test can now test your React, Vue.js or Svelte components. You can use all the features of Playwright Test (such as parallelization, emulation & debugging) while running components in real browsers.
Here is what a typical component test looks like:
// App.spec.tsx
import { test, expect } from '@​playwright/experimental-ct-react';
import App from './App';
// Let's test component in a dark scheme!
test.use({ colorScheme: 'dark' });
test('should render', async ({ mount }) => {
const component = await mount(<App></App>);
// As with any Playwright test, assert locator text.
await expect(component).toContainText('React');
// Or do a screenshot 🚀
await expect(component).toHaveScreenshot();
// Or use any Playwright method
await component.click();
});
Read more in our documentation.
Role selectors allow selecting elements by their ARIA role, ARIA attributes and accessible name.
// Click a button with accessible name "log in"
await page.click('role=button[name="log in"]')
Read more in our documentation.
New locator.filter([options])
API to filter an existing locator
const buttons = page.locator('role=button');
// ...
const submitButton = buttons.filter({ hasText: 'Submit' });
await submitButton.click();
New web-first assertions expect(page).toHaveScreenshot()
and expect(locator).toHaveScreenshot()
that wait for screenshot stabilization and enhances test reliability.
The new assertions has screenshot-specific defaults, such as:
await page.goto('https://playwright.dev');
await expect(page).toHaveScreenshot();
The new expect(page).toHaveScreenshot()
saves screenshots at the same location as expect(screenshot).toMatchSnapshot()
.
This version was also tested against the following stable channels:
v2.73.0
2022-05-13
This MR has been generated by Renovate Bot.