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,12 +0,0 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('badge: rendering', () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto('/src/components/badge/test/standalone');
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`badge-standalone-${page.getSnapshotSettings()}.png`);
});
});

View File

@ -1,75 +0,0 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<title>Badge - 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 class="ion-padding">
<h1>Default</h1>
<!-- Default -->
<ion-badge>99</ion-badge>
<hr />
<!-- Colors -->
<ion-badge color="primary">11</ion-badge>
<ion-badge color="secondary">22</ion-badge>
<ion-badge color="tertiary">33</ion-badge>
<ion-badge color="success">44</ion-badge>
<ion-badge color="warning">55</ion-badge>
<ion-badge color="danger">66</ion-badge>
<ion-badge color="light">77</ion-badge>
<ion-badge color="medium">88</ion-badge>
<ion-badge color="dark">99</ion-badge>
<h1>Custom</h1>
<!-- Custom Font -->
<ion-badge class="wide">wide</ion-badge>
<ion-badge class="large">large</ion-badge>
<ion-badge class="round">round</ion-badge>
<!-- Custom Colors -->
<ion-badge class="custom">custom</ion-badge>
<ion-badge color="secondary" class="custom">custom w/ secondary</ion-badge>
<style>
ion-badge {
--background: blue;
}
.wide {
min-width: 80px;
}
.large {
font-weight: normal;
font-size: 24px;
}
.round {
width: 60px;
height: 60px;
border-radius: 50%;
vertical-align: middle;
line-height: 50px;
}
.custom {
--background: lightpink;
--color: #222;
}
</style>
</body>
</html>