All Projects → roquie → Laravel Dusk Select2

roquie / Laravel Dusk Select2

Licence: mit
Select2.js support for the Laravel Dusk testing

Projects that are alternatives of or similar to Laravel Dusk Select2

Laravel Like Comment
Ajax based site wide like and commenting system for laravel.
Stars: ✭ 105 (+238.71%)
Mutual labels:  laravel, ajax
Fileuploader
Beautiful and powerful HTML file uploading tool. A jQuery, PHP and Node.js plugin that transforms the standard input into a revolutionary and fancy field on your page.
Stars: ✭ 111 (+258.06%)
Mutual labels:  laravel, ajax
Rapid.js
An ORM-like Interface and a Router For Your API Requests
Stars: ✭ 700 (+2158.06%)
Mutual labels:  laravel, ajax
Dt54
Laravel 5.4 DataTables Demo Application (WIP)
Stars: ✭ 27 (-12.9%)
Mutual labels:  laravel
Eloquent Driver
A package that allows you to store Statamic entries in a database.
Stars: ✭ 28 (-9.68%)
Mutual labels:  laravel
Laraberg
A Gutenberg implementation for Laravel
Stars: ✭ 949 (+2961.29%)
Mutual labels:  laravel
Laravel Jwt
Laravel with JWT Authentication for API development
Stars: ✭ 31 (+0%)
Mutual labels:  laravel
Orderable
My very first Laravel package
Stars: ✭ 21 (-32.26%)
Mutual labels:  laravel
Laravel Currency
Laravel currency table migration and seed
Stars: ✭ 31 (+0%)
Mutual labels:  laravel
Laravel Vue Favorite
Create a favorite/like/recommend component with Laravel and Vuejs.
Stars: ✭ 29 (-6.45%)
Mutual labels:  laravel
Base
Multilingual CMS built with Laravel.
Stars: ✭ 949 (+2961.29%)
Mutual labels:  laravel
Larawiz
Larawiz is a easy project scaffolder for Laravel
Stars: ✭ 28 (-9.68%)
Mutual labels:  laravel
Oc Shop Plugin
An ecommerce platform for October CMS.
Stars: ✭ 29 (-6.45%)
Mutual labels:  laravel
Laravel Nuxt
A Laravel-Nuxt starter kit.
Stars: ✭ 943 (+2941.94%)
Mutual labels:  laravel
Localization Helper
🎌 Laravel Localization Helper :: Easily add translation variables from Blade templates.
Stars: ✭ 31 (+0%)
Mutual labels:  laravel
Doorman
Limit access to your Laravel applications by using invite codes
Stars: ✭ 913 (+2845.16%)
Mutual labels:  laravel
Laravel Realworld Example App
Exemplary real world backend API built with Laravel
Stars: ✭ 954 (+2977.42%)
Mutual labels:  laravel
Gorose
GoRose(go orm), a mini database ORM for golang, which inspired by the famous php framwork laravle's eloquent. It will be friendly for php developer and python or ruby developer. Currently provides six major database drivers: mysql,sqlite3,postgres,oracle,mssql, Clickhouse.
Stars: ✭ 947 (+2954.84%)
Mutual labels:  laravel
Laravel Dev Booter
🚧 Boost your Laravel app by registering Prod services only on Prod.
Stars: ✭ 28 (-9.68%)
Mutual labels:  laravel
Laradown
Markdown parser for Laravel built on parsedown
Stars: ✭ 29 (-6.45%)
Mutual labels:  laravel



Introduction

Select2.js support for the Laravel Dusk testing. Support Select2 v3 and Select2 v4 versions.

Demo

Install

composer require --dev roquie/laravel-dusk-select2

Now, u may use it!

Usage

For default select2:

$browse->select2('@selector');

@selector class name of your <select> html tag.

If value not passed, it be selected automatically.

Another way, if need concrete value:

$browse->select2('@selector', 'you_text_value');

For multiple mode usage like this:

$browse->select2('@selector', ['foo', 'bar'], 5);
// the last parameter - maximum count of seconds for ajax loading before choice item.

Examples

Here.

Todo

  • [x] Add Laravel Dusk tests for Laravel Dusk extend feature ;)
  • [x] Add gif demonstration how it works.
  • [x] May be use + select2 out of the box?.
  • [x] Integration with Circle CI.

Changelog

Upgrade from 2.0 to 2.1

Without breaking changes.

Migration

  1. Update your roquie/laravel-dusk-select2 dependency to ^2.1 in your composer.json file.

Changes

  1. This project moved back to native dependency laravel/dusk package and does not depend on full Laravel Framework like before in 1.*.
  2. Tests updated
  3. Migrated to new phpunit schema.
  4. Updated dependencies to latest versions.
  5. Removed composer.lock
  6. Fixed CI build
  7. Tests moved to namespace.
  8. Replaced Docker Image who runs these code.

Upgrade from 1.* to 2.0

2.0 version of this package potentially has full compatibility with select2 v.3 and v.4. But, I deleted a lot of code regarding select2 v.3. Tests passed for both versions, but with some changes.

Migration

  1. Update your roquie/laravel-dusk-select2 dependency to ^2.0 in your composer.json file.
  2. That's all ...

Changes

  1. Project migrated to konsulting/dusk-standalone package to run tests. It more better solution, compares to download full laravel framework.
  2. Tests updated
  3. Minimal PHP version is 7.1 (!)
  4. Updated dependencies to latest versions.
  5. Fixed a bug when search input founded but is not displayed.

Upgrade from 0.1.* to 1.0.*

  1. Update your roquie/laravel-dusk-select2 dependency to ^1.0 in your composer.json file.
  2. Remove + .select2 from first parameter, also see last parameter.

Tests

Believe me, it's better to run it all in Docker:

  • make composer test

License

MIT License

Copyright (c) 2017-2021 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].