google / pageloader

A framework for creating page objects for in-browser or WebDriver tests.
https://pub.dartlang.org/packages/pageloader
Apache License 2.0
40 stars 46 forks source link

Non-null safe Angular 6 compatibility #216

Closed daniel-v closed 3 years ago

daniel-v commented 3 years ago

Could we have a version of this library that is compatible with Angular 6? Would be also nice if we could opt out of null-safe attempts until it is more mature.

mk13 commented 3 years ago

v3.3.2 and v.4.0.0 has been released. Both versions should be compatible with Angular 6.

v3.3.2 is non-null safe (SDK <2.12.0). v4.0.0 is unsound null safe, but can still be used on pageloader files that are not fully migrated yet. You can simply add a // @dart = 2.9 at the top of the file.

For example:

// @dart = 2.9

import 'package:pageloader/pageloader.dart';

@PageObject()
abstract class FooPO { ... }