2022-05-17 23:11:39 +08:00
|
|
|
GIT
|
|
|
|
remote: https://github.com/discourse/mail.git
|
|
|
|
revision: 5b700fc95ee66378e0cf2559abc73c8bc3062a4b
|
|
|
|
specs:
|
|
|
|
mail (2.8.0.edge)
|
|
|
|
mini_mime (>= 0.1.1)
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
GEM
|
2013-03-08 01:20:19 +08:00
|
|
|
remote: https://rubygems.org/
|
2013-02-06 03:16:51 +08:00
|
|
|
specs:
|
2022-07-13 18:17:46 +08:00
|
|
|
actionmailer (7.0.3.1)
|
|
|
|
actionpack (= 7.0.3.1)
|
|
|
|
actionview (= 7.0.3.1)
|
|
|
|
activejob (= 7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2014-09-25 08:28:27 +08:00
|
|
|
mail (~> 2.5, >= 2.5.4)
|
2022-03-21 22:28:52 +08:00
|
|
|
net-imap
|
|
|
|
net-pop
|
|
|
|
net-smtp
|
2017-08-23 10:58:25 +08:00
|
|
|
rails-dom-testing (~> 2.0)
|
2022-07-13 18:17:46 +08:00
|
|
|
actionpack (7.0.3.1)
|
|
|
|
actionview (= 7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2022-03-21 22:28:52 +08:00
|
|
|
rack (~> 2.0, >= 2.2.0)
|
2017-10-03 14:56:44 +08:00
|
|
|
rack-test (>= 0.6.3)
|
2017-08-23 10:58:25 +08:00
|
|
|
rails-dom-testing (~> 2.0)
|
2019-09-12 08:41:50 +08:00
|
|
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
2022-07-13 18:17:46 +08:00
|
|
|
actionview (7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2014-05-08 12:14:24 +08:00
|
|
|
builder (~> 3.1)
|
2017-08-23 10:58:25 +08:00
|
|
|
erubi (~> 1.4)
|
|
|
|
rails-dom-testing (~> 2.0)
|
2019-09-12 08:41:50 +08:00
|
|
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
2020-10-23 02:45:12 +08:00
|
|
|
actionview_precompiler (0.2.3)
|
2019-10-07 12:33:37 +08:00
|
|
|
actionview (>= 6.0.a)
|
2018-06-05 15:29:17 +08:00
|
|
|
active_model_serializers (0.8.4)
|
2013-07-24 02:42:52 +08:00
|
|
|
activemodel (>= 3.0)
|
2022-07-13 18:17:46 +08:00
|
|
|
activejob (7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2017-08-23 10:58:25 +08:00
|
|
|
globalid (>= 0.3.6)
|
2022-07-13 18:17:46 +08:00
|
|
|
activemodel (7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
|
|
|
activerecord (7.0.3.1)
|
|
|
|
activemodel (= 7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
|
|
|
activesupport (7.0.3.1)
|
2017-08-23 10:58:25 +08:00
|
|
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
2021-04-21 17:36:32 +08:00
|
|
|
i18n (>= 1.6, < 2)
|
|
|
|
minitest (>= 5.1)
|
|
|
|
tzinfo (~> 2.0)
|
2022-08-22 06:05:02 +08:00
|
|
|
addressable (2.8.1)
|
|
|
|
public_suffix (>= 2.0.2, < 6.0)
|
2022-02-11 09:01:38 +08:00
|
|
|
annotate (3.2.0)
|
|
|
|
activerecord (>= 3.2, < 8.0)
|
2019-12-06 14:11:10 +08:00
|
|
|
rake (>= 10.4, < 14.0)
|
2021-01-25 05:45:44 +08:00
|
|
|
ast (2.4.2)
|
2021-09-02 11:19:19 +08:00
|
|
|
aws-eventstream (1.2.0)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-partitions (1.583.0)
|
|
|
|
aws-sdk-core (3.130.2)
|
2020-04-21 04:06:38 +08:00
|
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-partitions (~> 1, >= 1.525.0)
|
2019-04-29 13:39:19 +08:00
|
|
|
aws-sigv4 (~> 1.1)
|
2015-05-25 15:57:06 +08:00
|
|
|
jmespath (~> 1.0)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-sdk-kms (1.56.0)
|
|
|
|
aws-sdk-core (~> 3, >= 3.127.0)
|
2019-04-29 13:39:19 +08:00
|
|
|
aws-sigv4 (~> 1.1)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-sdk-s3 (1.114.0)
|
|
|
|
aws-sdk-core (~> 3, >= 3.127.0)
|
2017-10-03 15:00:42 +08:00
|
|
|
aws-sdk-kms (~> 1)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-sigv4 (~> 1.4)
|
|
|
|
aws-sdk-sns (1.53.0)
|
|
|
|
aws-sdk-core (~> 3, >= 3.127.0)
|
2019-12-12 02:18:11 +08:00
|
|
|
aws-sigv4 (~> 1.1)
|
2022-05-05 09:54:29 +08:00
|
|
|
aws-sigv4 (1.5.0)
|
2020-06-18 23:11:17 +08:00
|
|
|
aws-eventstream (~> 1, >= 1.0.2)
|
2019-04-29 13:33:01 +08:00
|
|
|
barber (0.12.2)
|
2018-06-05 15:29:17 +08:00
|
|
|
ember-source (>= 1.0, < 3.1)
|
2015-05-07 22:52:31 +08:00
|
|
|
execjs (>= 1.2, < 3)
|
2020-11-05 22:52:51 +08:00
|
|
|
better_errors (2.9.1)
|
2013-02-06 03:16:51 +08:00
|
|
|
coderay (>= 1.0.0)
|
2018-06-05 15:29:17 +08:00
|
|
|
erubi (>= 1.0.0)
|
2014-08-22 08:33:55 +08:00
|
|
|
rack (>= 0.9.0)
|
2020-12-29 05:27:06 +08:00
|
|
|
binding_of_caller (1.0.0)
|
2013-02-28 18:27:25 +08:00
|
|
|
debug_inspector (>= 0.0.1)
|
2022-07-29 06:23:05 +08:00
|
|
|
bootsnap (1.13.0)
|
2022-02-03 13:16:03 +08:00
|
|
|
msgpack (~> 1.2)
|
2019-12-17 01:44:56 +08:00
|
|
|
builder (3.2.4)
|
2022-08-15 06:57:27 +08:00
|
|
|
bullet (7.0.3)
|
2016-06-28 09:29:42 +08:00
|
|
|
activesupport (>= 3.0.0)
|
2019-02-04 14:54:39 +08:00
|
|
|
uniform_notifier (~> 1.11)
|
2020-04-24 06:13:35 +08:00
|
|
|
byebug (11.1.3)
|
2022-11-07 06:25:35 +08:00
|
|
|
capybara (3.38.0)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
addressable
|
|
|
|
matrix
|
|
|
|
mini_mime (>= 0.1.3)
|
|
|
|
nokogiri (~> 1.8)
|
|
|
|
rack (>= 1.6.0)
|
|
|
|
rack-test (>= 0.6.3)
|
|
|
|
regexp_parser (>= 1.5, < 3.0)
|
|
|
|
xpath (~> 3.2)
|
2019-10-02 10:08:41 +08:00
|
|
|
cbor (0.5.9.6)
|
2014-09-25 08:40:35 +08:00
|
|
|
certified (1.0.0)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
childprocess (4.1.0)
|
2020-12-29 05:27:31 +08:00
|
|
|
chunky_png (1.4.0)
|
2020-06-01 22:21:46 +08:00
|
|
|
coderay (1.1.3)
|
2018-07-24 22:12:15 +08:00
|
|
|
colored2 (3.1.2)
|
2022-03-23 07:31:48 +08:00
|
|
|
concurrent-ruby (1.1.10)
|
2022-09-16 08:05:03 +08:00
|
|
|
connection_pool (2.3.0)
|
2022-10-31 05:24:50 +08:00
|
|
|
cose (1.3.0)
|
2019-10-02 10:08:41 +08:00
|
|
|
cbor (~> 0.5.9)
|
2020-07-10 02:13:32 +08:00
|
|
|
openssl-signature_algorithm (~> 1.0)
|
2022-02-01 06:45:10 +08:00
|
|
|
cppjieba_rb (0.4.2)
|
2020-12-29 10:57:30 +08:00
|
|
|
crack (0.4.5)
|
|
|
|
rexml
|
2020-01-13 22:27:16 +08:00
|
|
|
crass (1.0.6)
|
2022-09-19 06:40:16 +08:00
|
|
|
css_parser (1.12.0)
|
2019-07-31 03:05:08 +08:00
|
|
|
addressable
|
2021-03-24 16:08:53 +08:00
|
|
|
debug_inspector (1.1.0)
|
2021-12-24 05:55:21 +08:00
|
|
|
diff-lcs (1.5.0)
|
2022-06-21 07:48:29 +08:00
|
|
|
diffy (3.4.2)
|
2022-10-12 21:22:22 +08:00
|
|
|
digest (3.1.0)
|
2020-09-05 03:29:51 +08:00
|
|
|
discourse-ember-rails (0.18.6)
|
|
|
|
active_model_serializers
|
|
|
|
ember-data-source (>= 1.0.0.beta.5)
|
|
|
|
ember-handlebars-template (>= 0.1.1, < 1.0)
|
|
|
|
ember-source (>= 1.1.0)
|
|
|
|
jquery-rails (>= 1.0.17)
|
|
|
|
railties (>= 3.1)
|
2021-03-12 06:53:25 +08:00
|
|
|
discourse-ember-source (3.12.2.3)
|
2021-08-12 06:03:15 +08:00
|
|
|
discourse-fonts (0.0.9)
|
2022-10-07 06:16:04 +08:00
|
|
|
discourse-seed-fu (2.3.12)
|
|
|
|
activerecord (>= 3.1)
|
|
|
|
activesupport (>= 3.1)
|
2022-05-04 23:18:10 +08:00
|
|
|
discourse_dev_assets (0.0.4)
|
2021-03-05 01:34:51 +08:00
|
|
|
faker (~> 2.16)
|
2021-07-14 22:51:34 +08:00
|
|
|
literate_randomizer
|
2021-05-13 07:03:57 +08:00
|
|
|
docile (1.4.0)
|
2022-01-13 05:38:33 +08:00
|
|
|
ecma-re-validator (0.4.0)
|
|
|
|
regexp_parser (~> 2.2)
|
2020-06-05 22:00:59 +08:00
|
|
|
email_reply_trimmer (0.1.13)
|
2018-06-05 15:29:17 +08:00
|
|
|
ember-data-source (3.0.2)
|
|
|
|
ember-source (>= 2, < 3.0)
|
2019-01-10 18:06:01 +08:00
|
|
|
ember-handlebars-template (0.8.0)
|
2016-04-18 10:47:52 +08:00
|
|
|
barber (>= 0.11.0)
|
2019-01-10 18:06:01 +08:00
|
|
|
sprockets (>= 3.3, < 4.1)
|
|
|
|
ember-source (2.18.2)
|
2022-08-03 17:48:08 +08:00
|
|
|
erubi (1.11.0)
|
2022-11-10 02:12:15 +08:00
|
|
|
excon (0.94.0)
|
2021-05-14 17:36:35 +08:00
|
|
|
execjs (2.8.1)
|
2022-10-03 05:26:54 +08:00
|
|
|
exifr (1.3.10)
|
2022-07-26 06:43:07 +08:00
|
|
|
fabrication (2.30.0)
|
2022-09-22 09:52:34 +08:00
|
|
|
faker (2.23.0)
|
2022-03-07 07:48:27 +08:00
|
|
|
i18n (>= 1.8.11, < 2)
|
2013-02-13 18:32:18 +08:00
|
|
|
fakeweb (1.3.0)
|
2022-11-16 05:51:26 +08:00
|
|
|
faraday (2.7.0)
|
2022-09-27 18:42:33 +08:00
|
|
|
faraday-net_http (>= 2.0, < 3.1)
|
2021-04-19 16:13:56 +08:00
|
|
|
ruby2_keywords (>= 0.0.4)
|
2022-11-14 19:18:15 +08:00
|
|
|
faraday-net_http (3.0.2)
|
2022-10-05 20:19:04 +08:00
|
|
|
faraday-retry (2.0.0)
|
|
|
|
faraday (~> 2.0)
|
2021-08-18 10:44:07 +08:00
|
|
|
fast_blank (1.0.1)
|
2013-02-06 03:16:51 +08:00
|
|
|
fast_xs (0.8.0)
|
2021-12-17 06:04:39 +08:00
|
|
|
fastimage (2.2.6)
|
2022-01-11 06:54:49 +08:00
|
|
|
ffi (1.15.5)
|
2019-12-17 04:19:31 +08:00
|
|
|
fspath (3.1.2)
|
2016-12-20 12:01:36 +08:00
|
|
|
gc_tracer (1.5.1)
|
2021-11-29 05:23:39 +08:00
|
|
|
globalid (1.0.0)
|
2021-07-28 06:44:06 +08:00
|
|
|
activesupport (>= 5.0)
|
2015-03-10 08:09:49 +08:00
|
|
|
guess_html_encoding (0.0.11)
|
2021-01-22 07:28:08 +08:00
|
|
|
hana (1.3.7)
|
2020-03-03 03:31:19 +08:00
|
|
|
hashdiff (1.0.1)
|
2022-01-12 02:43:57 +08:00
|
|
|
hashie (5.0.0)
|
2020-08-19 23:15:23 +08:00
|
|
|
highline (2.0.3)
|
2018-05-05 06:31:48 +08:00
|
|
|
hkdf (0.3.0)
|
2015-09-23 15:10:15 +08:00
|
|
|
htmlentities (4.3.4)
|
2019-12-06 10:00:16 +08:00
|
|
|
http_accept_language (2.1.1)
|
2022-07-14 09:00:04 +08:00
|
|
|
i18n (1.12.0)
|
2018-06-05 15:29:17 +08:00
|
|
|
concurrent-ruby (~> 1.0)
|
2021-10-22 10:21:33 +08:00
|
|
|
image_optim (0.31.1)
|
2021-05-25 09:27:20 +08:00
|
|
|
exifr (~> 1.2, >= 1.2.2)
|
|
|
|
fspath (~> 3.0)
|
2021-10-22 10:21:33 +08:00
|
|
|
image_size (>= 1.5, < 4)
|
2021-05-25 09:27:20 +08:00
|
|
|
in_threads (~> 1.3)
|
|
|
|
progress (~> 3.0, >= 3.0.1)
|
2022-11-04 06:05:52 +08:00
|
|
|
image_size (3.2.0)
|
2022-02-07 21:11:52 +08:00
|
|
|
in_threads (1.6.0)
|
2022-03-08 05:28:29 +08:00
|
|
|
jmespath (1.6.1)
|
2022-11-11 19:55:43 +08:00
|
|
|
jquery-rails (4.5.1)
|
2016-10-21 01:22:46 +08:00
|
|
|
rails-dom-testing (>= 1, < 3)
|
2015-12-26 14:02:42 +08:00
|
|
|
railties (>= 4.2.0)
|
2013-12-06 14:06:52 +08:00
|
|
|
thor (>= 0.14, < 2.0)
|
2022-05-19 16:56:05 +08:00
|
|
|
json (2.6.2)
|
2022-10-19 16:47:09 +08:00
|
|
|
json-schema (3.0.0)
|
|
|
|
addressable (>= 2.8)
|
2022-11-04 06:06:14 +08:00
|
|
|
json_schemer (0.2.23)
|
2021-01-22 07:28:08 +08:00
|
|
|
ecma-re-validator (~> 0.3)
|
|
|
|
hana (~> 1.3)
|
|
|
|
regexp_parser (~> 2.0)
|
|
|
|
uri_template (~> 0.7)
|
2022-08-29 10:29:01 +08:00
|
|
|
jwt (2.5.0)
|
2021-05-27 06:31:36 +08:00
|
|
|
kgio (2.11.4)
|
2021-11-12 05:02:29 +08:00
|
|
|
libv8-node (16.10.0.0)
|
2021-12-01 03:31:11 +08:00
|
|
|
libv8-node (16.10.0.0-aarch64-linux)
|
2021-11-23 05:25:42 +08:00
|
|
|
libv8-node (16.10.0.0-arm64-darwin)
|
2021-11-12 05:02:29 +08:00
|
|
|
libv8-node (16.10.0.0-x86_64-darwin)
|
|
|
|
libv8-node (16.10.0.0-x86_64-darwin-19)
|
|
|
|
libv8-node (16.10.0.0-x86_64-linux)
|
2022-01-17 05:38:23 +08:00
|
|
|
listen (3.7.1)
|
2019-12-11 00:48:40 +08:00
|
|
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
|
|
rb-inotify (~> 0.9, >= 0.9.10)
|
2021-07-14 22:51:34 +08:00
|
|
|
literate_randomizer (0.4.0)
|
2022-03-31 18:56:12 +08:00
|
|
|
lograge (0.12.0)
|
2018-06-05 15:29:17 +08:00
|
|
|
actionpack (>= 4)
|
|
|
|
activesupport (>= 4)
|
|
|
|
railties (>= 4)
|
2017-10-27 17:54:45 +08:00
|
|
|
request_store (~> 1.0)
|
2017-11-01 08:37:11 +08:00
|
|
|
logstash-event (1.2.02)
|
2018-06-05 15:29:17 +08:00
|
|
|
logstash-logger (0.26.1)
|
2017-11-14 12:50:26 +08:00
|
|
|
logstash-event (~> 1.2)
|
2022-08-29 10:28:42 +08:00
|
|
|
logster (2.11.3)
|
2022-09-15 16:34:41 +08:00
|
|
|
loofah (2.19.0)
|
2017-10-03 14:56:44 +08:00
|
|
|
crass (~> 1.0.2)
|
2015-09-23 13:24:30 +08:00
|
|
|
nokogiri (>= 1.5.9)
|
2015-06-04 23:03:11 +08:00
|
|
|
lru_redux (1.1.0)
|
2019-09-04 15:18:32 +08:00
|
|
|
lz4-ruby (0.3.3)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
matrix (0.4.2)
|
2019-02-05 08:23:21 +08:00
|
|
|
maxminddb (0.1.22)
|
2022-10-27 05:30:27 +08:00
|
|
|
memory_profiler (1.0.1)
|
2022-02-23 00:16:02 +08:00
|
|
|
message_bus (4.2.0)
|
2013-12-06 14:06:52 +08:00
|
|
|
rack (>= 1.1.3)
|
2020-04-30 07:40:50 +08:00
|
|
|
method_source (1.0.0)
|
2021-10-12 09:21:20 +08:00
|
|
|
mini_mime (1.1.2)
|
2022-02-22 20:43:17 +08:00
|
|
|
mini_portile2 (2.8.0)
|
2022-08-17 09:36:46 +08:00
|
|
|
mini_racer (0.6.3)
|
2021-11-12 05:02:29 +08:00
|
|
|
libv8-node (~> 16.10.0.0)
|
2022-06-21 07:46:37 +08:00
|
|
|
mini_scheduler (0.14.0)
|
2020-12-08 07:11:57 +08:00
|
|
|
sidekiq (>= 4.2.3)
|
2022-03-08 14:11:09 +08:00
|
|
|
mini_sql (1.4.0)
|
2021-12-02 00:53:20 +08:00
|
|
|
mini_suffix (0.3.3)
|
2017-11-29 16:24:27 +08:00
|
|
|
ffi (~> 1.9)
|
2022-08-19 06:09:09 +08:00
|
|
|
minitest (5.16.3)
|
2022-11-08 07:50:34 +08:00
|
|
|
mocha (2.0.2)
|
2022-11-04 06:05:30 +08:00
|
|
|
ruby2_keywords (>= 0.0.5)
|
2022-10-03 05:26:14 +08:00
|
|
|
msgpack (1.6.0)
|
2020-07-14 03:33:49 +08:00
|
|
|
multi_json (1.15.0)
|
2017-03-28 04:51:52 +08:00
|
|
|
multi_xml (0.6.0)
|
2019-12-09 11:21:55 +08:00
|
|
|
mustache (1.1.1)
|
2022-11-02 00:33:17 +08:00
|
|
|
net-http (0.2.2)
|
2022-03-21 22:28:52 +08:00
|
|
|
uri
|
2022-09-30 10:03:25 +08:00
|
|
|
net-imap (0.3.1)
|
2022-03-21 22:28:52 +08:00
|
|
|
net-protocol
|
2022-09-29 10:23:09 +08:00
|
|
|
net-pop (0.1.2)
|
2022-03-21 22:28:52 +08:00
|
|
|
net-protocol
|
2022-04-28 19:38:12 +08:00
|
|
|
net-protocol (0.1.3)
|
2022-03-21 22:28:52 +08:00
|
|
|
timeout
|
2022-10-31 05:24:42 +08:00
|
|
|
net-smtp (0.3.3)
|
2022-03-21 22:28:52 +08:00
|
|
|
net-protocol
|
2021-08-04 10:59:22 +08:00
|
|
|
nio4r (2.5.8)
|
2022-10-19 16:12:48 +08:00
|
|
|
nokogiri (1.13.9)
|
2022-02-22 20:43:17 +08:00
|
|
|
mini_portile2 (~> 2.8.0)
|
2021-01-06 00:12:05 +08:00
|
|
|
racc (~> 1.4)
|
2022-10-19 16:12:48 +08:00
|
|
|
nokogiri (1.13.9-aarch64-linux)
|
2021-01-27 23:20:29 +08:00
|
|
|
racc (~> 1.4)
|
2022-10-19 16:12:48 +08:00
|
|
|
nokogiri (1.13.9-arm64-darwin)
|
2021-01-06 00:12:05 +08:00
|
|
|
racc (~> 1.4)
|
2022-10-19 16:12:48 +08:00
|
|
|
nokogiri (1.13.9-x86_64-darwin)
|
2022-02-03 20:55:48 +08:00
|
|
|
racc (~> 1.4)
|
2022-10-19 16:12:48 +08:00
|
|
|
nokogiri (1.13.9-x86_64-linux)
|
2021-01-06 00:12:05 +08:00
|
|
|
racc (~> 1.4)
|
2022-09-12 05:25:39 +08:00
|
|
|
oauth (1.1.0)
|
|
|
|
oauth-tty (~> 1.0, >= 1.0.1)
|
|
|
|
snaky_hash (~> 2.0)
|
|
|
|
version_gem (~> 1.1)
|
2022-10-25 15:29:48 +08:00
|
|
|
oauth-tty (1.0.5)
|
|
|
|
version_gem (~> 1.1, >= 1.1.1)
|
2022-09-27 18:42:33 +08:00
|
|
|
oauth2 (1.4.11)
|
|
|
|
faraday (>= 0.17.3, < 3.0)
|
2019-01-01 03:07:18 +08:00
|
|
|
jwt (>= 1.0, < 3.0)
|
2014-02-24 07:11:16 +08:00
|
|
|
multi_json (~> 1.3)
|
|
|
|
multi_xml (~> 0.5)
|
2022-09-27 18:42:33 +08:00
|
|
|
rack (>= 1.2, < 4)
|
2022-07-15 08:06:04 +08:00
|
|
|
oj (3.13.14)
|
2022-08-22 06:09:46 +08:00
|
|
|
omniauth (1.9.2)
|
2020-03-16 21:12:10 +08:00
|
|
|
hashie (>= 3.4.6)
|
2017-03-28 04:51:52 +08:00
|
|
|
rack (>= 1.6.2, < 3)
|
2021-10-26 18:09:20 +08:00
|
|
|
omniauth-facebook (9.0.0)
|
2014-09-25 08:40:35 +08:00
|
|
|
omniauth-oauth2 (~> 1.2)
|
2020-02-11 17:36:41 +08:00
|
|
|
omniauth-github (1.4.0)
|
2017-08-07 16:43:54 +08:00
|
|
|
omniauth (~> 1.5)
|
|
|
|
omniauth-oauth2 (>= 1.4.0, < 2.0)
|
2021-03-16 05:34:14 +08:00
|
|
|
omniauth-google-oauth2 (0.8.2)
|
2019-01-01 03:07:18 +08:00
|
|
|
jwt (>= 2.0)
|
2020-12-14 18:35:50 +08:00
|
|
|
oauth2 (~> 1.1)
|
2021-03-16 05:34:14 +08:00
|
|
|
omniauth (~> 1.1)
|
2019-12-10 04:13:07 +08:00
|
|
|
omniauth-oauth2 (>= 1.6)
|
2021-01-29 19:34:18 +08:00
|
|
|
omniauth-oauth (1.2.0)
|
2013-02-12 21:47:22 +08:00
|
|
|
oauth
|
2021-01-29 19:34:18 +08:00
|
|
|
omniauth (>= 1.0, < 3)
|
2022-09-27 19:01:36 +08:00
|
|
|
omniauth-oauth2 (1.7.3)
|
|
|
|
oauth2 (>= 1.4, < 3)
|
2021-01-12 05:53:07 +08:00
|
|
|
omniauth (>= 1.9, < 3)
|
2018-06-05 15:29:17 +08:00
|
|
|
omniauth-twitter (1.4.0)
|
2015-09-23 15:18:43 +08:00
|
|
|
omniauth-oauth (~> 1.1)
|
2017-01-15 09:10:09 +08:00
|
|
|
rack
|
2022-09-11 17:57:17 +08:00
|
|
|
openssl (3.0.1)
|
2022-06-06 15:17:47 +08:00
|
|
|
openssl-signature_algorithm (1.2.1)
|
|
|
|
openssl (> 2.0, < 3.1)
|
2020-04-21 13:32:24 +08:00
|
|
|
optimist (3.0.1)
|
2022-03-28 09:19:46 +08:00
|
|
|
parallel (1.22.1)
|
2022-11-07 06:41:00 +08:00
|
|
|
parallel_tests (4.0.0)
|
2019-04-01 16:27:49 +08:00
|
|
|
parallel
|
2022-08-10 09:04:00 +08:00
|
|
|
parser (3.1.2.1)
|
2020-06-23 00:39:59 +08:00
|
|
|
ast (~> 2.4.1)
|
2022-10-12 21:38:17 +08:00
|
|
|
pg (1.4.4)
|
2021-04-05 06:45:09 +08:00
|
|
|
progress (3.6.0)
|
2022-08-16 10:39:25 +08:00
|
|
|
pry (0.14.1)
|
2020-04-30 07:40:50 +08:00
|
|
|
coderay (~> 1.1)
|
|
|
|
method_source (~> 1.0)
|
2022-08-17 09:36:27 +08:00
|
|
|
pry-byebug (3.10.1)
|
2020-06-05 10:30:34 +08:00
|
|
|
byebug (~> 11.0)
|
2022-08-16 10:39:25 +08:00
|
|
|
pry (>= 0.13, < 0.15)
|
2019-04-29 13:33:01 +08:00
|
|
|
pry-rails (0.3.9)
|
2018-06-05 15:29:17 +08:00
|
|
|
pry (>= 0.10.4)
|
2022-08-22 06:05:02 +08:00
|
|
|
public_suffix (5.0.0)
|
2022-08-24 06:45:05 +08:00
|
|
|
puma (5.6.5)
|
2019-12-09 09:51:41 +08:00
|
|
|
nio4r (~> 2.0)
|
2018-06-05 15:29:17 +08:00
|
|
|
r2 (0.2.7)
|
2021-10-20 12:50:37 +08:00
|
|
|
racc (1.6.0)
|
2022-07-04 06:20:28 +08:00
|
|
|
rack (2.2.4)
|
2022-02-25 19:23:52 +08:00
|
|
|
rack-mini-profiler (3.0.0)
|
2016-03-06 19:22:45 +08:00
|
|
|
rack (>= 1.2.0)
|
2022-11-14 07:32:22 +08:00
|
|
|
rack-protection (3.0.3)
|
2013-02-06 03:16:51 +08:00
|
|
|
rack
|
2022-06-29 10:49:47 +08:00
|
|
|
rack-test (2.0.2)
|
2022-06-28 04:13:46 +08:00
|
|
|
rack (>= 1.3)
|
2017-08-23 10:58:25 +08:00
|
|
|
rails-dom-testing (2.0.3)
|
|
|
|
activesupport (>= 4.2.0)
|
|
|
|
nokogiri (>= 1.6)
|
2022-06-13 11:15:14 +08:00
|
|
|
rails-html-sanitizer (1.4.3)
|
2019-11-08 13:56:30 +08:00
|
|
|
loofah (~> 2.3)
|
2022-02-16 05:37:19 +08:00
|
|
|
rails_failover (0.8.1)
|
|
|
|
activerecord (> 6.0, < 7.1)
|
2020-11-25 19:21:50 +08:00
|
|
|
concurrent-ruby
|
2022-02-16 05:37:19 +08:00
|
|
|
railties (> 6.0, < 7.1)
|
2022-03-06 01:41:22 +08:00
|
|
|
rails_multisite (4.0.1)
|
|
|
|
activerecord (> 5.0, < 7.1)
|
|
|
|
railties (> 5.0, < 7.1)
|
2022-07-13 18:17:46 +08:00
|
|
|
railties (7.0.3.1)
|
|
|
|
actionpack (= 7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2017-08-23 10:58:25 +08:00
|
|
|
method_source
|
2022-03-21 22:28:52 +08:00
|
|
|
rake (>= 12.2)
|
2021-04-21 17:36:32 +08:00
|
|
|
thor (~> 1.0)
|
2022-03-21 22:28:52 +08:00
|
|
|
zeitwerk (~> 2.5)
|
2022-01-12 02:54:27 +08:00
|
|
|
rainbow (3.1.1)
|
2021-12-08 08:42:57 +08:00
|
|
|
raindrops (0.20.0)
|
2021-07-12 08:45:20 +08:00
|
|
|
rake (13.0.6)
|
2022-08-30 09:49:28 +08:00
|
|
|
rb-fsevent (0.11.2)
|
2019-12-31 09:20:10 +08:00
|
|
|
rb-inotify (0.10.1)
|
2019-03-21 00:04:26 +08:00
|
|
|
ffi (~> 1.0)
|
2020-08-04 09:42:10 +08:00
|
|
|
rbtrace (0.4.14)
|
2013-12-06 14:06:52 +08:00
|
|
|
ffi (>= 1.0.6)
|
|
|
|
msgpack (>= 0.4.3)
|
2019-02-05 08:23:21 +08:00
|
|
|
optimist (>= 3.0.0)
|
2018-07-31 18:02:18 +08:00
|
|
|
rchardet (1.8.0)
|
2022-08-26 13:16:50 +08:00
|
|
|
redis (4.7.1)
|
2022-08-15 09:35:57 +08:00
|
|
|
redis-namespace (1.9.0)
|
|
|
|
redis (>= 4)
|
2022-09-27 18:43:12 +08:00
|
|
|
regexp_parser (2.6.0)
|
2022-02-08 10:05:35 +08:00
|
|
|
request_store (1.5.1)
|
2018-06-05 15:29:17 +08:00
|
|
|
rack (>= 1.4)
|
2021-04-06 19:25:03 +08:00
|
|
|
rexml (3.2.5)
|
2019-04-29 13:00:58 +08:00
|
|
|
rinku (2.0.6)
|
2022-11-14 07:31:52 +08:00
|
|
|
rotp (6.2.1)
|
2022-07-27 12:41:19 +08:00
|
|
|
rqrcode (2.1.2)
|
2017-12-22 09:18:12 +08:00
|
|
|
chunky_png (~> 1.0)
|
2021-05-06 22:13:52 +08:00
|
|
|
rqrcode_core (~> 1.0)
|
2021-08-27 20:21:06 +08:00
|
|
|
rqrcode_core (1.2.0)
|
2022-10-27 05:30:51 +08:00
|
|
|
rspec (3.12.0)
|
|
|
|
rspec-core (~> 3.12.0)
|
|
|
|
rspec-expectations (~> 3.12.0)
|
|
|
|
rspec-mocks (~> 3.12.0)
|
|
|
|
rspec-core (3.12.0)
|
|
|
|
rspec-support (~> 3.12.0)
|
|
|
|
rspec-expectations (3.12.0)
|
2015-04-26 06:29:43 +08:00
|
|
|
diff-lcs (>= 1.2.0, < 2.0)
|
2022-10-27 05:30:51 +08:00
|
|
|
rspec-support (~> 3.12.0)
|
2022-07-27 06:47:17 +08:00
|
|
|
rspec-html-matchers (0.10.0)
|
2015-09-25 06:20:59 +08:00
|
|
|
nokogiri (~> 1)
|
2022-07-27 06:47:17 +08:00
|
|
|
rspec (>= 3.0.0.a)
|
2022-10-27 05:30:51 +08:00
|
|
|
rspec-mocks (3.12.0)
|
2015-04-26 06:29:43 +08:00
|
|
|
diff-lcs (>= 1.2.0, < 2.0)
|
2022-10-27 05:30:51 +08:00
|
|
|
rspec-support (~> 3.12.0)
|
2022-10-19 16:03:25 +08:00
|
|
|
rspec-rails (6.0.1)
|
2022-10-13 02:25:49 +08:00
|
|
|
actionpack (>= 6.1)
|
|
|
|
activesupport (>= 6.1)
|
|
|
|
railties (>= 6.1)
|
|
|
|
rspec-core (~> 3.11)
|
|
|
|
rspec-expectations (~> 3.11)
|
|
|
|
rspec-mocks (~> 3.11)
|
|
|
|
rspec-support (~> 3.11)
|
2022-10-27 05:30:51 +08:00
|
|
|
rspec-support (3.12.0)
|
2021-09-20 11:51:47 +08:00
|
|
|
rss (0.2.9)
|
|
|
|
rexml
|
2022-10-19 16:47:09 +08:00
|
|
|
rswag-specs (2.7.0)
|
2022-02-10 06:26:50 +08:00
|
|
|
activesupport (>= 3.1, < 7.1)
|
2022-10-19 16:47:09 +08:00
|
|
|
json-schema (>= 2.2, < 4.0)
|
2022-02-10 06:26:50 +08:00
|
|
|
railties (>= 3.1, < 7.1)
|
2022-10-19 16:47:09 +08:00
|
|
|
rspec-core (>= 2.14)
|
2022-11-14 19:31:56 +08:00
|
|
|
rubocop (1.39.0)
|
2022-06-30 12:45:32 +08:00
|
|
|
json (~> 2.3)
|
2017-08-01 09:51:44 +08:00
|
|
|
parallel (~> 1.10)
|
2022-08-10 09:06:14 +08:00
|
|
|
parser (>= 3.1.2.1)
|
2018-03-13 14:58:23 +08:00
|
|
|
rainbow (>= 2.2.2, < 4.0)
|
2020-12-08 07:11:31 +08:00
|
|
|
regexp_parser (>= 1.8, < 3.0)
|
2022-05-09 16:57:39 +08:00
|
|
|
rexml (>= 3.2.5, < 4.0)
|
2022-10-26 09:05:15 +08:00
|
|
|
rubocop-ast (>= 1.23.0, < 2.0)
|
2017-08-01 09:51:44 +08:00
|
|
|
ruby-progressbar (~> 1.7)
|
2021-01-08 05:31:21 +08:00
|
|
|
unicode-display_width (>= 1.4.0, < 3.0)
|
2022-10-26 08:37:50 +08:00
|
|
|
rubocop-ast (1.23.0)
|
2022-02-22 20:06:15 +08:00
|
|
|
parser (>= 3.1.1.0)
|
2022-09-27 19:07:09 +08:00
|
|
|
rubocop-discourse (3.0)
|
|
|
|
rubocop (>= 1.1.0)
|
|
|
|
rubocop-rspec (>= 2.0.0)
|
2022-11-04 06:05:05 +08:00
|
|
|
rubocop-rspec (2.15.0)
|
2022-09-13 09:47:47 +08:00
|
|
|
rubocop (~> 1.33)
|
2021-02-17 22:56:10 +08:00
|
|
|
ruby-prof (1.4.3)
|
2021-01-04 19:11:06 +08:00
|
|
|
ruby-progressbar (1.11.0)
|
2014-09-25 08:40:35 +08:00
|
|
|
ruby-readability (0.7.0)
|
2014-02-18 00:44:28 +08:00
|
|
|
guess_html_encoding (>= 0.0.4)
|
2014-09-25 08:40:35 +08:00
|
|
|
nokogiri (>= 1.6.0)
|
2021-07-19 07:21:31 +08:00
|
|
|
ruby2_keywords (0.0.5)
|
2021-07-06 06:25:33 +08:00
|
|
|
rubyzip (2.3.2)
|
2021-08-05 08:49:07 +08:00
|
|
|
sanitize (6.0.0)
|
2015-09-23 15:10:15 +08:00
|
|
|
crass (~> 1.0.2)
|
2021-08-05 08:49:07 +08:00
|
|
|
nokogiri (>= 1.12.0)
|
2020-08-22 00:23:01 +08:00
|
|
|
sassc (2.0.1)
|
2019-03-21 00:04:26 +08:00
|
|
|
ffi (~> 1.9)
|
2020-08-22 00:23:01 +08:00
|
|
|
rake
|
2019-12-10 08:50:34 +08:00
|
|
|
sassc-rails (2.1.2)
|
2019-03-22 07:23:29 +08:00
|
|
|
railties (>= 4.0.0)
|
|
|
|
sassc (>= 2.0)
|
|
|
|
sprockets (> 3.0)
|
|
|
|
sprockets-rails
|
|
|
|
tilt
|
2022-11-07 06:41:28 +08:00
|
|
|
selenium-webdriver (4.6.1)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
childprocess (>= 0.5, < 5.0)
|
|
|
|
rexml (~> 3.2, >= 3.2.5)
|
|
|
|
rubyzip (>= 1.2.2, < 3.0)
|
|
|
|
websocket (~> 1.0)
|
2022-09-19 06:41:09 +08:00
|
|
|
shoulda-matchers (5.2.0)
|
2021-07-12 06:43:38 +08:00
|
|
|
activesupport (>= 5.2.0)
|
2022-09-21 09:21:39 +08:00
|
|
|
sidekiq (6.5.7)
|
2022-08-30 15:34:53 +08:00
|
|
|
connection_pool (>= 2.2.5)
|
2020-02-14 11:53:31 +08:00
|
|
|
rack (~> 2.0)
|
2022-08-30 15:34:53 +08:00
|
|
|
redis (>= 4.5.0, < 5)
|
2021-01-11 07:23:10 +08:00
|
|
|
simplecov (0.21.2)
|
2019-04-01 13:00:11 +08:00
|
|
|
docile (~> 1.1)
|
2020-02-13 02:51:21 +08:00
|
|
|
simplecov-html (~> 0.11)
|
2020-11-30 05:02:46 +08:00
|
|
|
simplecov_json_formatter (~> 0.1)
|
2020-09-24 01:07:24 +08:00
|
|
|
simplecov-html (0.12.3)
|
2022-02-15 08:33:24 +08:00
|
|
|
simplecov_json_formatter (0.1.4)
|
2022-10-25 15:30:06 +08:00
|
|
|
snaky_hash (2.0.1)
|
2022-09-12 05:25:39 +08:00
|
|
|
hashie
|
2022-10-25 15:30:06 +08:00
|
|
|
version_gem (~> 1.1, >= 1.1.1)
|
2022-04-21 05:17:29 +08:00
|
|
|
sprockets (3.7.2)
|
2016-04-18 10:47:52 +08:00
|
|
|
concurrent-ruby (~> 1.0)
|
|
|
|
rack (> 1, < 3)
|
2021-12-13 05:29:58 +08:00
|
|
|
sprockets-rails (3.4.2)
|
2021-11-12 05:02:07 +08:00
|
|
|
actionpack (>= 5.2)
|
|
|
|
activesupport (>= 5.2)
|
2016-04-18 10:47:52 +08:00
|
|
|
sprockets (>= 3.0.0)
|
2019-04-29 13:33:01 +08:00
|
|
|
sshkey (2.0.0)
|
2022-10-14 05:25:44 +08:00
|
|
|
stackprof (0.2.22)
|
2022-10-28 06:37:58 +08:00
|
|
|
test-prof (1.0.11)
|
2022-01-06 05:37:37 +08:00
|
|
|
thor (1.2.1)
|
2022-07-25 09:19:33 +08:00
|
|
|
tilt (2.0.11)
|
2022-05-26 06:35:03 +08:00
|
|
|
timeout (0.3.0)
|
2022-07-20 09:20:22 +08:00
|
|
|
tzinfo (2.0.5)
|
2021-04-21 17:36:32 +08:00
|
|
|
concurrent-ruby (~> 1.0)
|
2019-12-10 22:28:15 +08:00
|
|
|
uglifier (4.2.0)
|
2016-05-23 10:23:15 +08:00
|
|
|
execjs (>= 0.3.0, < 3)
|
2014-09-25 08:40:35 +08:00
|
|
|
unf (0.1.4)
|
2013-12-06 14:06:52 +08:00
|
|
|
unf_ext
|
2022-05-27 23:34:44 +08:00
|
|
|
unf_ext (0.0.8.2)
|
2022-09-15 16:34:09 +08:00
|
|
|
unicode-display_width (2.3.0)
|
2022-01-03 19:17:54 +08:00
|
|
|
unicorn (6.1.0)
|
2013-07-07 12:30:52 +08:00
|
|
|
kgio (~> 2.6)
|
|
|
|
raindrops (~> 0.7)
|
2022-03-25 06:26:49 +08:00
|
|
|
uniform_notifier (1.16.0)
|
2022-03-21 22:28:52 +08:00
|
|
|
uri (0.11.0)
|
2021-01-22 07:28:08 +08:00
|
|
|
uri_template (0.7.0)
|
2022-10-25 15:29:48 +08:00
|
|
|
version_gem (1.1.1)
|
2022-09-30 15:00:18 +08:00
|
|
|
webdrivers (5.2.0)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
nokogiri (~> 1.6)
|
|
|
|
rubyzip (>= 1.3.0)
|
|
|
|
selenium-webdriver (~> 4.0)
|
2022-08-19 06:05:30 +08:00
|
|
|
webmock (3.18.1)
|
2021-08-06 06:04:10 +08:00
|
|
|
addressable (>= 2.8.0)
|
2017-04-15 12:11:02 +08:00
|
|
|
crack (>= 0.3.2)
|
2019-12-11 02:38:03 +08:00
|
|
|
hashdiff (>= 0.4.0, < 2.0.0)
|
2020-11-17 05:56:28 +08:00
|
|
|
webpush (1.1.0)
|
2018-05-05 06:31:48 +08:00
|
|
|
hkdf (~> 0.2)
|
2019-01-10 05:07:10 +08:00
|
|
|
jwt (~> 2.0)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
websocket (1.2.9)
|
2022-08-03 11:55:47 +08:00
|
|
|
xorcist (1.1.3)
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
xpath (3.2.0)
|
|
|
|
nokogiri (~> 1.8)
|
2019-07-02 17:29:52 +08:00
|
|
|
yaml-lint (0.0.10)
|
2022-11-10 02:11:40 +08:00
|
|
|
zeitwerk (2.6.6)
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
PLATFORMS
|
2021-12-01 03:31:11 +08:00
|
|
|
aarch64-linux
|
2021-01-27 23:20:29 +08:00
|
|
|
arm64-darwin-20
|
2013-02-06 03:16:51 +08:00
|
|
|
ruby
|
2020-12-29 12:39:50 +08:00
|
|
|
x86_64-darwin-18
|
|
|
|
x86_64-darwin-19
|
|
|
|
x86_64-darwin-20
|
2020-12-29 12:12:30 +08:00
|
|
|
x86_64-linux
|
2013-02-06 03:16:51 +08:00
|
|
|
|
|
|
|
DEPENDENCIES
|
2022-07-13 18:17:46 +08:00
|
|
|
actionmailer (= 7.0.3.1)
|
|
|
|
actionpack (= 7.0.3.1)
|
|
|
|
actionview (= 7.0.3.1)
|
2019-10-07 12:33:37 +08:00
|
|
|
actionview_precompiler
|
2015-04-24 04:20:53 +08:00
|
|
|
active_model_serializers (~> 0.8.3)
|
2022-07-13 18:17:46 +08:00
|
|
|
activemodel (= 7.0.3.1)
|
|
|
|
activerecord (= 7.0.3.1)
|
|
|
|
activesupport (= 7.0.3.1)
|
2019-12-17 08:33:51 +08:00
|
|
|
addressable
|
2013-12-06 14:06:52 +08:00
|
|
|
annotate
|
2017-10-03 15:00:42 +08:00
|
|
|
aws-sdk-s3
|
2019-02-14 04:26:40 +08:00
|
|
|
aws-sdk-sns
|
2013-06-07 05:50:49 +08:00
|
|
|
barber
|
2013-02-06 03:16:51 +08:00
|
|
|
better_errors
|
|
|
|
binding_of_caller
|
2017-05-27 01:26:45 +08:00
|
|
|
bootsnap
|
2016-06-28 09:29:42 +08:00
|
|
|
bullet
|
2015-08-14 11:59:06 +08:00
|
|
|
byebug
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
capybara
|
2019-10-02 10:08:41 +08:00
|
|
|
cbor
|
2013-02-06 03:16:51 +08:00
|
|
|
certified
|
2018-09-05 05:57:20 +08:00
|
|
|
colored2
|
2019-10-02 10:08:41 +08:00
|
|
|
cose
|
2017-08-01 03:28:48 +08:00
|
|
|
cppjieba_rb
|
2019-07-31 03:05:08 +08:00
|
|
|
css_parser
|
2019-06-07 16:21:37 +08:00
|
|
|
diffy
|
2022-10-12 21:22:22 +08:00
|
|
|
digest
|
2020-09-05 03:29:51 +08:00
|
|
|
discourse-ember-rails (= 0.18.6)
|
2020-02-05 21:51:00 +08:00
|
|
|
discourse-ember-source (~> 3.12.2)
|
2020-08-31 18:14:09 +08:00
|
|
|
discourse-fonts
|
2022-10-07 06:16:04 +08:00
|
|
|
discourse-seed-fu
|
2021-06-14 23:04:44 +08:00
|
|
|
discourse_dev_assets
|
2019-12-06 10:00:16 +08:00
|
|
|
email_reply_trimmer
|
2019-01-10 18:06:01 +08:00
|
|
|
ember-handlebars-template (= 0.8.0)
|
2015-05-25 15:57:06 +08:00
|
|
|
excon
|
2016-05-20 15:06:44 +08:00
|
|
|
execjs
|
2018-05-28 15:09:02 +08:00
|
|
|
fabrication
|
2021-06-14 23:04:44 +08:00
|
|
|
faker (~> 2.16)
|
2019-12-06 10:00:16 +08:00
|
|
|
fakeweb
|
2022-10-05 20:19:04 +08:00
|
|
|
faraday
|
|
|
|
faraday-retry
|
2013-04-08 07:42:39 +08:00
|
|
|
fast_blank
|
2013-02-06 03:16:51 +08:00
|
|
|
fast_xs
|
2018-01-04 16:53:53 +08:00
|
|
|
fastimage
|
2016-12-20 12:01:36 +08:00
|
|
|
gc_tracer
|
2020-08-19 23:15:23 +08:00
|
|
|
highline
|
2014-06-06 08:34:21 +08:00
|
|
|
htmlentities
|
2019-12-06 10:00:16 +08:00
|
|
|
http_accept_language
|
2021-05-25 09:27:20 +08:00
|
|
|
image_optim
|
2020-03-24 12:21:50 +08:00
|
|
|
json
|
2021-01-22 07:28:08 +08:00
|
|
|
json_schemer
|
2017-04-13 22:26:07 +08:00
|
|
|
listen
|
2017-10-27 17:54:45 +08:00
|
|
|
lograge
|
2017-11-01 08:37:11 +08:00
|
|
|
logstash-event
|
2017-11-14 12:50:26 +08:00
|
|
|
logstash-logger
|
2022-05-10 06:19:02 +08:00
|
|
|
logster
|
2021-04-07 23:51:19 +08:00
|
|
|
loofah
|
2013-04-24 09:59:59 +08:00
|
|
|
lru_redux
|
2019-09-04 15:18:32 +08:00
|
|
|
lz4-ruby
|
2022-05-17 23:11:39 +08:00
|
|
|
mail!
|
2018-10-09 22:21:41 +08:00
|
|
|
maxminddb
|
2014-05-08 11:49:34 +08:00
|
|
|
memory_profiler
|
2019-02-04 14:46:38 +08:00
|
|
|
message_bus
|
2017-06-13 19:27:05 +08:00
|
|
|
mini_mime
|
2016-05-19 20:25:08 +08:00
|
|
|
mini_racer
|
2018-08-01 05:12:55 +08:00
|
|
|
mini_scheduler
|
2018-06-19 14:13:14 +08:00
|
|
|
mini_sql
|
2017-11-29 16:24:27 +08:00
|
|
|
mini_suffix
|
2013-02-24 07:24:28 +08:00
|
|
|
minitest
|
2020-04-22 00:32:42 +08:00
|
|
|
mocha
|
2013-02-06 03:16:51 +08:00
|
|
|
multi_json
|
|
|
|
mustache
|
2022-03-21 22:28:52 +08:00
|
|
|
net-http
|
2022-10-12 21:22:22 +08:00
|
|
|
net-imap
|
|
|
|
net-pop
|
|
|
|
net-smtp
|
2016-06-07 14:54:36 +08:00
|
|
|
nokogiri
|
2022-07-15 08:06:04 +08:00
|
|
|
oj (= 3.13.14)
|
2013-02-12 14:51:44 +08:00
|
|
|
omniauth
|
2013-02-12 21:47:22 +08:00
|
|
|
omniauth-facebook
|
2017-08-07 16:43:54 +08:00
|
|
|
omniauth-github
|
2019-06-04 02:17:00 +08:00
|
|
|
omniauth-google-oauth2
|
2013-08-18 12:43:59 +08:00
|
|
|
omniauth-oauth2
|
2013-02-12 21:47:22 +08:00
|
|
|
omniauth-twitter
|
2019-04-01 16:27:49 +08:00
|
|
|
parallel_tests
|
2018-06-19 14:13:14 +08:00
|
|
|
pg
|
2020-06-05 10:30:34 +08:00
|
|
|
pry-byebug
|
2013-02-06 03:16:51 +08:00
|
|
|
pry-rails
|
2013-08-29 13:26:27 +08:00
|
|
|
puma
|
2019-12-06 10:00:16 +08:00
|
|
|
r2
|
2020-07-08 14:42:31 +08:00
|
|
|
rack
|
2014-02-18 00:44:28 +08:00
|
|
|
rack-mini-profiler
|
2013-10-29 08:00:31 +08:00
|
|
|
rack-protection
|
2020-06-11 13:45:46 +08:00
|
|
|
rails_failover
|
2018-02-12 14:08:02 +08:00
|
|
|
rails_multisite
|
2022-07-13 18:17:46 +08:00
|
|
|
railties (= 7.0.3.1)
|
2013-02-06 03:16:51 +08:00
|
|
|
rake
|
|
|
|
rb-fsevent
|
2013-12-06 14:06:52 +08:00
|
|
|
rbtrace
|
2018-07-31 18:02:18 +08:00
|
|
|
rchardet
|
2019-12-06 10:00:16 +08:00
|
|
|
redis
|
2016-01-01 12:40:12 +08:00
|
|
|
redis-namespace
|
2013-02-06 03:16:51 +08:00
|
|
|
rinku
|
2020-08-19 23:16:33 +08:00
|
|
|
rotp
|
2017-12-22 09:18:12 +08:00
|
|
|
rqrcode
|
2016-05-30 11:38:04 +08:00
|
|
|
rspec
|
2015-09-25 06:20:59 +08:00
|
|
|
rspec-html-matchers
|
2020-05-04 13:20:30 +08:00
|
|
|
rspec-rails
|
2021-09-20 11:51:47 +08:00
|
|
|
rss
|
2020-04-28 06:40:07 +08:00
|
|
|
rswag-specs
|
2022-09-27 19:07:09 +08:00
|
|
|
rubocop-discourse
|
2017-09-05 14:55:20 +08:00
|
|
|
ruby-prof
|
2014-04-15 12:45:00 +08:00
|
|
|
ruby-readability
|
2019-07-18 20:34:48 +08:00
|
|
|
rubyzip
|
2021-05-26 17:41:35 +08:00
|
|
|
sanitize
|
2020-08-22 00:23:01 +08:00
|
|
|
sassc (= 2.0.1)
|
2019-03-22 07:23:29 +08:00
|
|
|
sassc-rails
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
selenium-webdriver
|
2019-12-06 10:00:16 +08:00
|
|
|
shoulda-matchers
|
2014-02-24 07:00:25 +08:00
|
|
|
sidekiq
|
2019-04-01 13:00:11 +08:00
|
|
|
simplecov
|
2022-04-21 05:17:29 +08:00
|
|
|
sprockets (= 3.7.2)
|
2017-08-23 10:58:25 +08:00
|
|
|
sprockets-rails
|
2018-03-09 13:14:21 +08:00
|
|
|
sshkey
|
2014-02-18 10:24:42 +08:00
|
|
|
stackprof
|
2019-04-19 16:52:31 +08:00
|
|
|
test-prof
|
2017-03-03 02:35:47 +08:00
|
|
|
thor
|
2013-02-06 03:16:51 +08:00
|
|
|
uglifier
|
2013-12-06 14:06:52 +08:00
|
|
|
unf
|
2013-07-07 12:30:52 +08:00
|
|
|
unicorn
|
DEV: Minimal first pass of rails system test setup (#16311)
This commit introduces rails system tests run with chromedriver, selenium,
and headless chrome to our testing toolbox.
We use the `webdrivers` gem and `selenium-webdriver` which is what
the latest Rails uses so the tests run locally and in CI out of the box.
You can use `SELENIUM_VERBOSE_DRIVER_LOGS=1` to show extra
verbose logs of what selenium is doing to communicate with the system
tests.
By default JS logs are verbose so errors from JS are shown when
running system tests, you can disable this with
`SELENIUM_DISABLE_VERBOSE_JS_LOGS=1`
You can use `SELENIUM_HEADLESS=0` to run the system
tests inside a chrome browser instead of headless, which can be useful to debug things
and see what the spec sees. See note above about `bin/ember-cli` to avoid
surprises.
I have modified `bin/turbo_rspec` to exclude `spec/system` by default,
support for parallel system specs is a little shaky right now and we don't
want them slowing down the turbo by default either.
### PageObjects and System Tests
To make querying and inspecting parts of the page easier
and more reusable inbetween system tests, we are using the
concept of [PageObjects](https://www.selenium.dev/documentation/test_practices/encouraged/page_object_models/) in
our system tests. A "Page" here is generally corresponds to
an overarching ember route, e.g. "Topic" for `/t/324345/some-topic`,
and this contains logic for querying components within the topic
such as "Posts".
I have also split "Modals" into their own entity. Further down the
line we may want to explore creating independent "Component"
contexts.
Capybara DSL should be included in each PageObject class,
reference for this can be found at https://rubydoc.info/github/teamcapybara/capybara/master#the-dsl
For system tests, since they are so slow, we want to focus on
the "happy path" and not do every different possible context
and branch check using them. They are meant to be overarching
tests that check a number of things are correct using the full stack
from JS and ember to rails to ruby and then the database.
### CI Setup
Whenever a system spec fails, a screenshot
is taken and a build artifact is produced _after the entire CI run is complete_,
which can be downloaded from the Actions UI in the repo.
Most importantly, a step to build the Ember app using Ember CLI
is needed, otherwise the JS assets cannot be found by capybara:
```
- name: Build Ember CLI
run: bin/ember-cli --build
```
A new `--build` argument has been added to `bin/ember-cli` for this
case, which is not needed locally if you already have the discourse
rails server running via `bin/ember-cli -u` since the whole server is built and
set up by default.
Co-authored-by: David Taylor <david@taylorhq.com>
2022-09-28 09:48:16 +08:00
|
|
|
webdrivers
|
2017-04-15 12:11:02 +08:00
|
|
|
webmock
|
2018-05-07 17:09:58 +08:00
|
|
|
webpush
|
2020-09-01 03:20:44 +08:00
|
|
|
xorcist
|
2019-07-02 17:29:52 +08:00
|
|
|
yaml-lint
|
2015-09-10 12:37:46 +08:00
|
|
|
|
|
|
|
BUNDLED WITH
|
2022-10-05 20:19:04 +08:00
|
|
|
2.3.22
|