renovate[bot]
02ec5d09a1
chore(deps): update dependency @playwright/test to v1.41.2 ( #29046 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@playwright/test](https://playwright.dev )
([source](https://togithub.com/microsoft/playwright )) | [`1.39.0` ->
`1.41.2`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.39.0/1.41.2 )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>microsoft/playwright (@​playwright/test)</summary>
###
[`v1.41.2`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.2 )
[Compare
Source](https://togithub.com/microsoft/playwright/compare/v1.41.1...v1.41.2 )
##### Highlights
[https://github.com/microsoft/playwright/issues/29123 ](https://togithub.com/microsoft/playwright/issues/29123 )
- \[REGRESSION] route.continue: Protocol error (Fetch.continueRequest):
Invalid InterceptionId.
#### Browser Versions
- Chromium 121.0.6167.57
- Mozilla Firefox 121.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 120
- Microsoft Edge 120
###
[`v1.41.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.1 )
[Compare
Source](https://togithub.com/microsoft/playwright/compare/v1.41.0...v1.41.1 )
##### Highlights
[https://github.com/microsoft/playwright/issues/29067 ](https://togithub.com/microsoft/playwright/issues/29067 )
- \[REGRESSION] Codegen/Recorder: not all clicks are being actioned nor
recorded[https://github.com/microsoft/playwright/issues/29028 ](https://togithub.com/microsoft/playwright/issues/29028 )8
- \[REGRESSION] React component tests throw type error when passing
null/undefined to
componen[https://github.com/microsoft/playwright/issues/29027 ](https://togithub.com/microsoft/playwright/issues/29027 )27
- \[REGRESSION] React component tests not passing Date prop
valu[https://github.com/microsoft/playwright/issues/29023 ](https://togithub.com/microsoft/playwright/issues/29023 )023
- \[REGRESSION] React component tests not rendering children
p[https://github.com/microsoft/playwright/issues/29019 ](https://togithub.com/microsoft/playwright/issues/29019 )9019
- \[REGRESSION] trace.playwright.dev does not currently support the
loading from URL
#### Browser Versions
- Chromium 121.0.6167.57
- Mozilla Firefox 121.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 120
- Microsoft Edge 120
###
[`v1.41.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.0 )
[Compare
Source](https://togithub.com/microsoft/playwright/compare/v1.40.1...v1.41.0 )
#### New APIs
- New method
[page.unrouteAll(\[options\])](https://playwright.dev/docs/api/class-page#page-unroute-all )
removes all routes registered by [page.route(url, handler, handler\[,
options\])](https://playwright.dev/docs/api/class-page#page-route ) and
[page.routeFromHAR(har\[,
options\])](https://playwright.dev/docs/api/class-page#page-route-from-har ).
Optionally allows to wait for ongoing routes to finish, or ignore any
errors from them.
- New method
[browserContext.unrouteAll(\[options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-unroute-all )
removes all routes registered by [browserContext.route(url, handler,
handler\[,
options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route )
and [browserContext.routeFromHAR(har\[,
options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route-from-har ).
Optionally allows to wait for ongoing routes to finish, or ignore any
errors from them.
- New option `style` in
[page.screenshot(\[options\])](https://playwright.dev/docs/api/class-page#page-screenshot )
and
[locator.screenshot(\[options\])](https://playwright.dev/docs/api/class-locator#locator-screenshot )
to add custom CSS to the page before taking a screenshot.
- New option `stylePath` for methods
[expect(page).toHaveScreenshot(name\[,
options\])](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1 )
and [expect(locator).toHaveScreenshot(name\[,
options\])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-screenshot-1 )
to apply a custom stylesheet while making the screenshot.
- New `fileName` option for [Blob
reporter](https://playwright.dev/docs/test-reporters#blob-reporter ), to
specify the name of the report to be created.
#### Browser Versions
- Chromium 121.0.6167.57
- Mozilla Firefox 121.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 120
- Microsoft Edge 120
###
[`v1.40.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.40.1 )
[Compare
Source](https://togithub.com/microsoft/playwright/compare/v1.40.0...v1.40.1 )
##### Highlights
[https://github.com/microsoft/playwright/issues/28319 ](https://togithub.com/microsoft/playwright/issues/28319 )
- \[REGRESSION]: Version 1.40.0 Produces corrupted
traces[https://github.com/microsoft/playwright/issues/28371 ](https://togithub.com/microsoft/playwright/issues/28371 )1
- \[BUG] The color of the 'ok' text did not change to green in the vs
code test results
sectio[https://github.com/microsoft/playwright/issues/28321 ](https://togithub.com/microsoft/playwright/issues/28321 )21
- \[BUG] Ambiguous test outcome and status for serial
mo[https://github.com/microsoft/playwright/issues/28362 ](https://togithub.com/microsoft/playwright/issues/28362 )362
- \[BUG] Merging blobs ends up in Error: Cannot create a string longer
than 0x1fffffe8
charact[https://github.com/microsoft/playwright/pull/28239 ](https://togithub.com/microsoft/playwright/pull/28239 )8239
- fix: collect all errors in removeFolders
##### Browser Versions
- Chromium 120.0.6099.28
- Mozilla Firefox 119.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 119
- Microsoft Edge 119
###
[`v1.40.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.40.0 )
[Compare
Source](https://togithub.com/microsoft/playwright/compare/v1.39.0...v1.40.0 )
#### Test Generator Update

New tools to generate assertions:
- "Assert visibility" tool generates
[expect(locator).toBeVisible()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-visible ).
- "Assert value" tool generates
[expect(locator).toHaveValue(value)](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-value ).
- "Assert text" tool generates
[expect(locator).toContainText(text)](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-contain-text ).
Here is an example of a generated test with assertions:
```js
import { test, expect } from '@​playwright/test';
test('test', async ({ page }) => {
await page.goto('https://playwright.dev/ ');
await page.getByRole('link', { name: 'Get started' }).click();
await expect(page.getByLabel('Breadcrumbs').getByRole('list')).toContainText('Installation');
await expect(page.getByLabel('Search')).toBeVisible();
await page.getByLabel('Search').click();
await page.getByPlaceholder('Search docs').fill('locator');
await expect(page.getByPlaceholder('Search docs')).toHaveValue('locator');
});
```
#### New APIs
- Option `reason` in
[page.close()](https://playwright.dev/docs/api/class-page#page-close ),
[browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browser-context-close )
and
[browser.close()](https://playwright.dev/docs/api/class-browser#browser-close ).
Close reason is reported for all operations interrupted by the closure.
- Option `firefoxUserPrefs` in
[browserType.launchPersistentContext(userDataDir)](https://playwright.dev/docs/api/class-browsertype#browser-type-launch-persistent-context ).
#### Other Changes
- Methods
[download.path()](https://playwright.dev/docs/api/class-download#download-path )
and
[download.createReadStream()](https://playwright.dev/docs/api/class-download#download-create-read-stream )
throw an error for failed and cancelled downloads.
- Playwright [docker image](https://playwright.dev/docs/docker ) now
comes with Node.js v20.
#### Browser Versions
- Chromium 120.0.6099.28
- Mozilla Firefox 119.0
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 119
- Microsoft Edge 119
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekday before 11am" (UTC),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ionic-team/ionic-framework ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com >
Co-authored-by: ionitron <hi@ionicframework.com >
2024-03-01 18:46:37 +00:00
Sean Perkins
4f1b4cdc29
chore(core): type checking for unit tests ( #28529 )
...
Issue number: N/A
---------
<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->
<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
Type checking inside of the Stencil unit tests have been disabled for a
long time. This has resulted in a difficult developer experience and
numerous issues (both types and implementation) within our unit tests.
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- Type checking is now enabled for all Stencil unit tests
- Tests have been updated to resolve type errors and implementation
errors
- Many `as any` casts were introduced, as many legacy tests test invalid
configurations of functions that require it (for example passing
`undefined` to an argument that cannot be `undefined`).
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->
## Other information
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
To test this PR you can checkout the branch locally. Install
dependencies in the `/core` directory to make sure you are on at least
`@stencil/core@4.7.2`.
Opening either a `.spec.ts` or `.spec.tsx` file, validate that your IDE
detects types and can provide auto completions for jest global types.
If you desire, you can provide an invalid type and try building the
project - you will observe the build will fail due to the invalid type.
2023-11-17 16:47:34 +00:00
Liam DeBeasi
d0d9e35c37
refactor: remove extra typescript dependency ( #28220 )
2023-09-26 09:01:53 -04:00
Liam DeBeasi
49baad8ee6
feat(range): component can be used outside of ion-item ( #26479 )
2022-12-15 15:52:56 -05:00
Liam DeBeasi
3d19771185
feat(datetime): add wheel style picker for dates and times ( #25468 )
2022-06-14 16:35:47 -04:00
Liam DeBeasi
ae06f4230d
chore(): exclude stencil tests from type checking ( #25052 )
2022-04-04 12:29:07 -04:00
Sean Perkins
2af24494f5
chore(playwright): enable type checking ( #25034 )
2022-03-31 15:42:09 -04:00
Liam DeBeasi
0aa6d124d6
test(e2e): add infrastructure for migration to playwright ( #25033 )
2022-03-31 11:23:21 -04:00
Liam DeBeasi
e4ec572043
fix(modal): sheet modal now allows input focusing when backdrop disabled ( #24840 )
...
resolves #24581
2022-02-28 13:27:12 -05:00
Manu MA
976e68da5b
refactor(): minor updates for next stencil version ( #20787 )
2020-03-24 11:59:07 -04:00
Manu Mtz.-Almeida
1b5bb67959
chore(): update to latest stencil
2018-07-31 20:09:26 +02:00
Manu Mtz.-Almeida
bb809b63ed
perf(all): dynamic import
2018-05-08 19:39:07 +02:00
Manu Mtz.-Almeida
4ea8881f33
refactor(all): enable strictPropertyInitialization
2018-04-19 18:48:38 +02:00
Manu Mtz.-Almeida
fd5c957787
refactor(all): enable ts strict
2018-04-10 02:43:48 +02:00
Adam Bradley
a1eabecc61
chore(): update angular build scripts
2018-03-26 16:31:40 -05:00
Manu Mtz.-Almeida
06ad60ea0c
fix(all): ts strict (part 3)
2018-03-20 16:48:30 +01:00
Brandy Carney
d37623a2ca
chore(packages): move the packages to root
2018-03-12 16:02:25 -04:00