test(many): remove unnecessary standalone tests (#26047)
@ -1,44 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Toggle - Standalone</title>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
||||
/>
|
||||
<link href="../../../../../css/core.css" rel="stylesheet" />
|
||||
<link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
|
||||
<script src="../../../../../scripts/testing/scripts.js"></script>
|
||||
<script nomodule src="../../../../../dist/ionic/ionic.js"></script>
|
||||
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Default -->
|
||||
<ion-toggle aria-label="Default Toggle"></ion-toggle>
|
||||
|
||||
<!-- Colors -->
|
||||
<ion-toggle aria-label="Primary Toggle" checked color="primary"></ion-toggle>
|
||||
<ion-toggle aria-label="Secondary Toggle" checked color="secondary"></ion-toggle>
|
||||
<ion-toggle aria-label="Tertiary Toggle" checked color="tertiary"></ion-toggle>
|
||||
<ion-toggle aria-label="Success Toggle" checked color="success"></ion-toggle>
|
||||
<ion-toggle aria-label="Warning Toggle" checked color="warning"></ion-toggle>
|
||||
<ion-toggle aria-label="Danger Toggle" checked color="danger"></ion-toggle>
|
||||
<ion-toggle aria-label="Light Toggle" checked color="light"></ion-toggle>
|
||||
<ion-toggle aria-label="Medium Toggle" checked color="medium"></ion-toggle>
|
||||
<ion-toggle aria-label="Dark Toggle" checked color="dark"></ion-toggle>
|
||||
<ion-toggle aria-label="Custom Toggle" checked class="custom"></ion-toggle>
|
||||
|
||||
<!-- Disabled -->
|
||||
<ion-toggle aria-label="Disabled Default Toggle" checked disabled></ion-toggle>
|
||||
<ion-toggle aria-label="Disabled Secondary Toggle" checked disabled color="secondary"></ion-toggle>
|
||||
|
||||
<style>
|
||||
.custom {
|
||||
--background-checked: papayawhip;
|
||||
--handle-background-checked: purple;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,12 +0,0 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from '@utils/test/playwright';
|
||||
|
||||
test.describe('toggle: standalone', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.goto(`/src/components/toggle/test/standalone`);
|
||||
|
||||
await page.setIonViewport();
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(`toggle-standalone-diff-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
Before Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 40 KiB |