mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
test(many): remove unnecessary standalone tests (#26047)
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
import { newE2EPage } from '@stencil/core/testing';
|
||||
|
||||
test('menu-button: standalone', async () => {
|
||||
const page = await newE2EPage({
|
||||
url: '/src/components/menu-button/test/standalone?ionic:_testing=true',
|
||||
});
|
||||
|
||||
const compare = await page.compareScreenshot();
|
||||
expect(compare).toMatchScreenshot();
|
||||
});
|
||||
@ -1,67 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Menu Button - 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>
|
||||
<h1>Default</h1>
|
||||
<ion-menu-button auto-hide="false"></ion-menu-button>
|
||||
|
||||
<h1>Custom</h1>
|
||||
<ion-menu-button auto-hide="false" class="custom"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="secondary" class="custom"></ion-menu-button>
|
||||
|
||||
<h1>Colors</h1>
|
||||
<ion-menu-button auto-hide="false" color="primary"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="secondary"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="tertiary"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="success"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="warning"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="danger"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="light"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="medium"></ion-menu-button>
|
||||
<ion-menu-button auto-hide="false" color="dark"></ion-menu-button>
|
||||
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-menu-button auto-hide="false"></ion-menu-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Default</ion-title>
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-toolbar color="primary">
|
||||
<ion-buttons slot="start">
|
||||
<ion-menu-button auto-hide="false"></ion-menu-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Primary</ion-title>
|
||||
</ion-toolbar>
|
||||
|
||||
<ion-toolbar color="light">
|
||||
<ion-buttons slot="start">
|
||||
<ion-menu-button auto-hide="false"></ion-menu-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Light</ion-title>
|
||||
</ion-toolbar>
|
||||
|
||||
<style>
|
||||
ion-menu-button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.custom {
|
||||
--color: hotpink;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user