sensiolabs / BehatPageObjectExtension

MIT License
117 stars 48 forks source link

Support PHP 8.0 #136

Closed phil-davis closed 2 years ago

phil-davis commented 3 years ago

As at 2020-12-17 support for PHP 8.0 seems to be blocked by dependencies:

and???

jakzal commented 3 years ago

@phil-davis thanks for looking into this!

jakzal commented 3 years ago

https://github.com/sensiolabs/BehatPageObjectExtension/pull/137

jakzal commented 3 years ago

PHP 8.0 build is now passing: #138

jakzal commented 3 years ago

btw, I dropped the expect helper as it seems to be unmaintained.

phil-davis commented 3 years ago

https://packagist.org/packages/sensiolabs/behat-page-object-extension does not show the new release yet. Maybe it just needs time, or is some other action needed to push from the 2.3.3 release tag to packagist?

jakzal commented 3 years ago

There now :)

phil-davis commented 3 years ago

I guess https://github.com/FriendsOfBehat/MinkExtension/pull/4 is not essential for this repo to support PHP 8.0

I got a successful CI run with PHP 8.0 and some UI tests that use Page Objects:

https://drone.owncloud.com/owncloud/core/28165/124/8

8.0: Pulling from owncloudci/php
Digest: sha256:d84b9328af187ddb8592587a3dd8f7ea49947459913480ef335c561a20ccf4b0
Status: Image is up to date for owncloudci/php:8.0
+ make vendor-bin-behat
composer install
...
  - Installing sensiolabs/behat-page-object-extension (v2.3.3): Extracting archive

https://drone.owncloud.com/owncloud/core/28165/124/15

8.0: Pulling from owncloudci/php
Digest: sha256:d84b9328af187ddb8592587a3dd8f7ea49947459913480ef335c561a20ccf4b0
Status: Image is up to date for owncloudci/php:8.0
...
Running webUIComments tests tagged ~@skipWhenTestingRemoteSystems&&~@skipOnOcV10&&~@skipOnOcV10.6&&~@skipOnOcV10.6.1&&@webUI&&~@skip on browser 'chrome' on platform 'Linux' 
@webUI @insulated @disablePreviews @comments-app-required
Feature: Add, delete and edit comments in files and folders
...
6 scenarios (6 passed)
60 steps (60 passed)
4m41.52s (23.85Mb)

Looks good.

DonCallisto commented 2 years ago

MinkExtension's PR is merged, so I guess this is ready?

jakzal commented 2 years ago

@DonCallisto thanks for the reminder. I need to remember what were were suppose to do here 😅

DonCallisto commented 2 years ago

There's already a tagged release for this (checked now; didn't noticed), so I guess we can close it?

phil-davis commented 2 years ago

https://github.com/FriendsOfBehat/MinkExtension/pull/4 was merged on 2021-01-21 and https://github.com/FriendsOfBehat/MinkExtension/releases/tag/v2.5.0 was released the same day.

https://github.com/sensiolabs/BehatPageObjectExtension/releases/tag/v2.3.3 was released on 2021-01-07. This repo does not use a composer.lock so people who use BehatPageObjectExtension should get the current MinkExtension 2.5.0 when thye do composer install

IMO this is finished. Feel free to open if you know otherwise.

jakzal commented 2 years ago

thanks both!

This repo does not use a composer.lock so people who use BehatPageObjectExtension should get the current MinkExtension 2.5.0 when thye do composer install

Just to clarify one thing - even if this repo used the lock file, consumers of this package wouldn’t use it. Composer doesn’t consider lock files of installed packages.