@ionic/core 8.6.4-nightly.20250707 → 8.6.4-nightly.20250709
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,6 +30,24 @@ export const setContent = async (page, html, testInfo, options) => {
|
|
|
30
30
|
palette = options.palette;
|
|
31
31
|
}
|
|
32
32
|
const baseUrl = process.env.PLAYWRIGHT_TEST_BASE_URL;
|
|
33
|
+
// The Ionic bundle is included locally by default unless the test
|
|
34
|
+
// config passes in the importIonicFromCDN option. This is useful
|
|
35
|
+
// when testing with the CDN version of Ionic.
|
|
36
|
+
let ionicCSSImports = `
|
|
37
|
+
<link href="${baseUrl}/css/ionic.bundle.css" rel="stylesheet" />
|
|
38
|
+
`;
|
|
39
|
+
let ionicJSImports = `
|
|
40
|
+
<script type="module" src="${baseUrl}/dist/ionic/ionic.esm.js"></script>
|
|
41
|
+
`;
|
|
42
|
+
if (options === null || options === void 0 ? void 0 : options.importIonicFromCDN) {
|
|
43
|
+
ionicCSSImports = `
|
|
44
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" />
|
|
45
|
+
`;
|
|
46
|
+
ionicJSImports = `
|
|
47
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
|
|
48
|
+
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
33
51
|
const output = `
|
|
34
52
|
<!DOCTYPE html>
|
|
35
53
|
<html dir="${direction}" lang="en">
|
|
@@ -37,11 +55,11 @@ export const setContent = async (page, html, testInfo, options) => {
|
|
|
37
55
|
<title>Ionic Playwright Test</title>
|
|
38
56
|
<meta charset="UTF-8" />
|
|
39
57
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
40
|
-
|
|
58
|
+
${ionicCSSImports}
|
|
41
59
|
<link href="${baseUrl}/scripts/testing/styles.css" rel="stylesheet" />
|
|
42
60
|
${palette !== 'light' ? `<link href="${baseUrl}/css/palettes/${palette}.always.css" rel="stylesheet" />` : ''}
|
|
43
61
|
<script src="${baseUrl}/scripts/testing/scripts.js"></script>
|
|
44
|
-
|
|
62
|
+
${ionicJSImports}
|
|
45
63
|
<script>
|
|
46
64
|
window.Ionic = {
|
|
47
65
|
config: {
|
package/dist/docs.json
CHANGED
|
@@ -27,6 +27,11 @@ interface PageOptions {
|
|
|
27
27
|
* - `'commit'` - consider operation to be finished when network response is received and the document started loading.
|
|
28
28
|
*/
|
|
29
29
|
waitUntil?: 'load' | 'domcontentloaded' | 'networkidle' | 'commit';
|
|
30
|
+
/**
|
|
31
|
+
* If true, the default Ionic imports will be included
|
|
32
|
+
* via the CDN instead of the local bundle.
|
|
33
|
+
*/
|
|
34
|
+
importIonicFromCDN?: boolean;
|
|
30
35
|
}
|
|
31
36
|
export interface E2EPage extends Page {
|
|
32
37
|
/**
|