mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +02:00
Update cypress test to assert one placeholder
This commit is contained in:
parent
f0fcf3bca5
commit
e599c0a834
|
@ -458,6 +458,7 @@ describe('Choices - select one', () => {
|
|||
cy.get('[data-test-hook=remote-data]')
|
||||
.find('.choices__list--single')
|
||||
.children()
|
||||
.should('have.length', 1)
|
||||
.first()
|
||||
.should('have.class', 'choices__placeholder')
|
||||
.and($placeholder => {
|
||||
|
|
|
@ -218,7 +218,7 @@
|
|||
}
|
||||
|
||||
.choices__list--dropdown {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
|
@ -230,10 +230,11 @@
|
|||
border-bottom-right-radius: 2.5px;
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
will-change: visibility;
|
||||
}
|
||||
|
||||
.choices__list--dropdown.is-active {
|
||||
display: block;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.is-open .choices__list--dropdown {
|
||||
|
|
2
public/assets/styles/choices.min.css
vendored
2
public/assets/styles/choices.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -15,43 +15,46 @@
|
|||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="../assets/images/apple-touch-icon.png"
|
||||
href="../../assets/images/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-32x32.png"
|
||||
href="../../assets/images/favicon-32x32.png"
|
||||
sizes="32x32"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-16x16.png"
|
||||
href="../../assets/images/favicon-16x16.png"
|
||||
sizes="16x16"
|
||||
/>
|
||||
<link rel="manifest" href="../assets/images/manifest.json" />
|
||||
<link rel="manifest" href="../../assets/images/manifest.json" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="../assets/images/safari-pinned-tab.svg"
|
||||
href="../../assets/images/safari-pinned-tab.svg"
|
||||
color="#00bcd4"
|
||||
/>
|
||||
<link rel="shortcut icon" href="../assets/images/favicon.ico" />
|
||||
<link rel="shortcut icon" href="../../assets/images/favicon.ico" />
|
||||
<meta
|
||||
name="msapplication-config"
|
||||
content="../assets/images/browserconfig.xml"
|
||||
content="../../assets/images/browserconfig.xml"
|
||||
/>
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
<!-- Ignore these -->
|
||||
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../../assets/styles/base.min.css?version=6.0.3"
|
||||
/>
|
||||
<!-- End ignore these -->
|
||||
|
||||
<!-- Choices includes -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../assets/styles/choices.min.css?version=6.0.3"
|
||||
href="../../assets/styles/choices.min.css?version=6.0.3"
|
||||
/>
|
||||
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<script src="../../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<!-- End Choices includes -->
|
||||
</head>
|
||||
|
||||
|
@ -215,7 +218,9 @@
|
|||
name="choices-remote-data"
|
||||
id="choices-remote-data"
|
||||
multiple
|
||||
></select>
|
||||
>
|
||||
<option value="">Placeholder</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div data-test-hook="scrolling-dropdown">
|
||||
|
|
|
@ -15,43 +15,46 @@
|
|||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="../assets/images/apple-touch-icon.png"
|
||||
href="../../assets/images/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-32x32.png"
|
||||
href="../../assets/images/favicon-32x32.png"
|
||||
sizes="32x32"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-16x16.png"
|
||||
href="../../assets/images/favicon-16x16.png"
|
||||
sizes="16x16"
|
||||
/>
|
||||
<link rel="manifest" href="../assets/images/manifest.json" />
|
||||
<link rel="manifest" href="../../assets/images/manifest.json" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="../assets/images/safari-pinned-tab.svg"
|
||||
href="../../assets/images/safari-pinned-tab.svg"
|
||||
color="#00bcd4"
|
||||
/>
|
||||
<link rel="shortcut icon" href="../assets/images/favicon.ico" />
|
||||
<link rel="shortcut icon" href="../../assets/images/favicon.ico" />
|
||||
<meta
|
||||
name="msapplication-config"
|
||||
content="../assets/images/browserconfig.xml"
|
||||
content="../../assets/images/browserconfig.xml"
|
||||
/>
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
<!-- Ignore these -->
|
||||
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../../assets/styles/base.min.css?version=6.0.3"
|
||||
/>
|
||||
<!-- End ignore these -->
|
||||
|
||||
<!-- Choices includes -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../assets/styles/choices.min.css?version=6.0.3"
|
||||
href="../../assets/styles/choices.min.css?version=6.0.3"
|
||||
/>
|
||||
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<script src="../../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<!-- End Choices includes -->
|
||||
</head>
|
||||
|
||||
|
@ -184,7 +187,9 @@
|
|||
class="form-control"
|
||||
name="choices-remote-data"
|
||||
id="choices-remote-data"
|
||||
></select>
|
||||
>
|
||||
<option value="">Placeholder</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div data-test-hook="scrolling-dropdown">
|
||||
|
|
|
@ -15,43 +15,46 @@
|
|||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="../assets/images/apple-touch-icon.png"
|
||||
href="../../assets/images/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-32x32.png"
|
||||
href="../../assets/images/favicon-32x32.png"
|
||||
sizes="32x32"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="../assets/images/favicon-16x16.png"
|
||||
href="../../assets/images/favicon-16x16.png"
|
||||
sizes="16x16"
|
||||
/>
|
||||
<link rel="manifest" href="../assets/images/manifest.json" />
|
||||
<link rel="manifest" href="../../assets/images/manifest.json" />
|
||||
<link
|
||||
rel="mask-icon"
|
||||
href="../assets/images/safari-pinned-tab.svg"
|
||||
href="../../assets/images/safari-pinned-tab.svg"
|
||||
color="#00bcd4"
|
||||
/>
|
||||
<link rel="shortcut icon" href="../assets/images/favicon.ico" />
|
||||
<link rel="shortcut icon" href="../../assets/images/favicon.ico" />
|
||||
<meta
|
||||
name="msapplication-config"
|
||||
content="../assets/images/browserconfig.xml"
|
||||
content="../../assets/images/browserconfig.xml"
|
||||
/>
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
<!-- Ignore these -->
|
||||
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../../assets/styles/base.min.css?version=6.0.3"
|
||||
/>
|
||||
<!-- End ignore these -->
|
||||
|
||||
<!-- Choices includes -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="../assets/styles/choices.min.css?version=6.0.3"
|
||||
href="../../assets/styles/choices.min.css?version=6.0.3"
|
||||
/>
|
||||
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<script src="../../assets/scripts/choices.min.js?version=6.0.3"></script>
|
||||
<!-- End Choices includes -->
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Reference in a new issue