Commit Graph

2242 Commits

Author SHA1 Message Date
filipefurtad0
ef68791fd6 Sets js_errors: to false and keeps headless; true
Sets js_errors to false

Sets headless to true
2021-10-14 14:11:36 +01:00
jibees
a9d4233af9 Merge pull request #8310 from mkllnk/raise-js-errors-in-system-specs
Raise JavaScript errors within system specs
2021-10-13 11:27:45 +02:00
Filipe
8aa7ef2e39 Merge pull request #8336 from jibees/8335-fix-flaky-embedded_shopfronts_spec
Move embedded_shopfronts_spec as system spec
2021-10-12 14:32:08 +01:00
Jean-Baptiste Bellet
059163c49d Move embedded_shopfronts_spec as system spec 2021-10-12 14:28:54 +02:00
Jean-Baptiste Bellet
d53ae3370d Move orders_spec.rb as system spec 2021-10-12 14:27:38 +02:00
Maikel Linke
5a85fcd349 Expect content after page is loaded
The login action takes some time and the spec wasn't waiting for that. I
suspected a race condition when AngularJS is initialising form values
and we are expecting certain values.
2021-10-12 15:04:16 +11:00
Maikel
ccc73eb829 Merge pull request #8316 from jibees/5937-resolve-flaky-spec-on-shopping_spec
resolve flaky spec on shopping spec
2021-10-12 14:27:37 +11:00
Matt-Yorkley
3fe237b25d Merge pull request #8319 from filipefurtad0/account_folder_into_system_spec
Updates and moves consumer/account folder into system
2021-10-12 02:33:36 +02:00
Maikel
dcc8dc7ead Merge pull request #8318 from filipefurtad0/fix_flaky_checkout_auth_spec
Fix flaky checkout auth spec
2021-10-11 17:18:03 +11:00
Maikel Linke
35ed7e852d Remove errornous quotes from alert text 2021-10-11 16:43:14 +11:00
Maikel Linke
b008116734 Cover alert text in spec
The `strip` method removes a trailing newline at the end.
2021-10-11 16:41:52 +11:00
Maikel Linke
02a19361fb Raise JavaScript errors within system specs
Re-raising console errors helps us to find subtle bugs.
2021-10-11 13:39:24 +11:00
filipefurtad0
75f773fafc Updates/moves consumer/account/settings_spec into system 2021-10-08 14:36:54 +01:00
filipefurtad0
acc0cc08c3 Updates/moves consumer/account/payments_spec into system 2021-10-08 14:31:03 +01:00
filipefurtad0
97a79a77e1 Updates/moves consumer/account/cards_spec into system 2021-10-08 14:29:41 +01:00
filipefurtad0
0d87aea9f5 Updates and moves checkout_auth_spec into system 2021-10-08 14:05:38 +01:00
filipefurtad0
a376c0b079 Updates cookie manipulation syntax to be Ferrum compliant 2021-10-08 10:28:02 +01:00
filipefurtad0
8f777b4d38 Updates authentication_spec.rb into system spec 2021-10-08 10:26:14 +01:00
Jean-Baptiste Bellet
3d87485cd3 Move shopping_spec.rb as a system spec
- Move the file to `spec/system/`
 - Replace `require 'spec_helper'` by `require 'system_helper'`
 - replace `feature` with `describe`
2021-10-08 11:06:54 +02:00
filipefurtad0
6025d43f0d Updates checkout_spec into system 2021-10-06 13:34:59 +11:00
Andy Brett
c8419940bf Merge pull request #8264 from filipefurtad0/orders_spec_update_2
Orders spec update
2021-10-05 15:50:03 -07:00
filipefurtad0
18ff3f52b7 Moves spec from feature into system folder 2021-10-06 09:15:02 +11:00
filipefurtad0
6aed6f186d Adds assertion on filtering by completion date 2021-09-30 17:29:43 +01:00
filipefurtad0
258f797680 Adds assertion on filtering by distributors 2021-09-30 17:01:25 +01:00
filipefurtad0
07e92d343c Adds assertion on displaying complete but empty orders 2021-09-30 16:22:42 +01:00
filipefurtad0
4ba69850be Adds assertion on en/dis-abling the Print Invoices button 2021-09-30 15:45:03 +01:00
filipefurtad0
3ee1cc9578 Adds assertion on en/dis-abling the Print Invoices button 2021-09-30 15:43:01 +01:00
filipefurtad0
6000d4c985 Declares variables with let! avoiding repedition (DRY) 2021-09-21 16:33:17 +01:00
filipefurtad0
536d4b9894 Updates orders_spec.rb into system spec 2021-09-21 15:58:45 +01:00
Jean-Baptiste Bellet
1b7c36664e Add missing i18n key for Devise
and update tests as well:
 - from feature to system
 - Add the reset password scenario
 - Add some errors scenario to the reset password scenario: token expired, token invalid, and not the same password
2021-09-01 17:16:29 +02:00
Matt-Yorkley
21f26669b4 Split spec configurations into smaller parts
base_spec_helper now defines configs that are universal, whereas spec_helper is for configs that are using DatabaseCleaner and Selenium. This means we can include the base_spec_helper in both the system test setup and the regular setup but separate the other configurations for each type.
2021-07-25 12:32:36 +01:00
Matt-Yorkley
afce55dab5 Add Devise System spec helpers
This is recommended when using Devise.
2021-07-25 11:25:44 +01:00
Matt-Yorkley
2b4d8fbd63 Reorganise cuprite setup code 2021-07-22 11:01:51 +01:00
Matt-Yorkley
1c493c7238 Don't use feature keyword in system test 2021-07-22 10:49:14 +01:00
Matt-Yorkley
7ee6e48f17 Ignore external scripts
In some cases the browser will try to load external files like fonts, Google maps JS, Stripe JS. This can cause network issues on slow connections and add a lot of unnecessary time to each test.
2021-07-22 10:48:16 +01:00
Matt-Yorkley
0fbba0fa9d Clean up some comments 2021-07-22 10:20:57 +01:00
Matt-Yorkley
a14059a77d Adjust timeout settings for more flexibility 2021-07-22 10:18:50 +01:00
Matt-Yorkley
ac64908c2b Tidy up compiling helper 2021-07-22 10:18:18 +01:00
filipefurtad0
85d2db52ae Sets headless: true 2021-07-21 16:42:46 +01:00
filipefurtad0
df7f4d0a31 Removed some unecessary comments 2021-07-21 16:25:20 +01:00
filipefurtad0
ecbab52f06 Removes unecessary CAPYBARA_APP_HOST specification 2021-07-21 15:59:08 +01:00
filipefurtad0
ec07a3cd3d Add the Ferrum-Cuprite driver to the stack 2021-07-20 15:52:21 +01:00