test(many): remove unnecessary standalone tests (#26047)

This commit is contained in:
Amanda Johnston
2022-09-29 16:16:22 -05:00
committed by GitHub
parent cd6050a34b
commit 294dc66294
214 changed files with 0 additions and 2308 deletions

View File

@ -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>

View File

@ -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`);
});
});