Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullet Train Update: 1.6.35 #26

Merged
merged 8 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_run_super_scaffolding_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
CIRCLE_NODE_INDEX: ${{ strategy.job-index }}

- name: 'Run Super Scaffolding Test'
run: bundle exec rails test test/system/super_scaffolding/super_scaffolding_test.rb test/system/super_scaffolding/partial_test.rb test/controllers/webhooks/incoming/some_provider_webhooks_controller_test.rb
run: bin/rails test test/system/super_scaffolding/ test/controllers/webhooks/incoming/some_provider_webhooks_controller_test.rb
working-directory: tmp/starter

- name: Test Summary
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ end

# We use a constant here so that we can ensure that all of the bullet_train-*
# packages are on the same version.
BULLET_TRAIN_VERSION = "1.6.34"
BULLET_TRAIN_VERSION = "1.6.35"

# Core packages.
gem "bullet_train", BULLET_TRAIN_VERSION
Expand Down
76 changes: 38 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ GEM
bootsnap (1.17.1)
msgpack (~> 1.2)
builder (3.2.4)
bullet_train (1.6.34)
bullet_train (1.6.35)
awesome_print
bullet_train-has_uuid
bullet_train-roles
Expand Down Expand Up @@ -160,7 +160,7 @@ GEM
unicode-emoji
valid_email
xxhash
bullet_train-api (1.6.34)
bullet_train-api (1.6.35)
bullet_train
bullet_train-super_scaffolding
colorizer
Expand All @@ -171,61 +171,61 @@ GEM
pagy_cursor
rack-cors
rails (>= 6.0.0)
bullet_train-fields (1.6.34)
bullet_train-fields (1.6.35)
chronic
cloudinary
phonelib
rails (>= 6.0.0)
bullet_train-has_uuid (1.6.34)
bullet_train-has_uuid (1.6.35)
rails (>= 6.0.0)
bullet_train-incoming_webhooks (1.6.34)
bullet_train-incoming_webhooks (1.6.35)
bullet_train
bullet_train-api
bullet_train-super_scaffolding
rails (>= 6.0.0)
bullet_train-integrations (1.6.34)
bullet_train-integrations (1.6.35)
rails (>= 6.0.0)
bullet_train-integrations-stripe (1.6.34)
bullet_train-integrations-stripe (1.6.35)
omniauth
omniauth-rails_csrf_protection
omniauth-stripe-connect
rails (>= 6.0.0)
stripe
bullet_train-obfuscates_id (1.6.34)
bullet_train-obfuscates_id (1.6.35)
hashids
rails (>= 6.0.0)
bullet_train-outgoing_webhooks (1.6.34)
bullet_train-outgoing_webhooks (1.6.35)
public_suffix
rails (>= 6.0.0)
bullet_train-roles (1.6.34)
bullet_train-roles (1.6.35)
active_hash
activesupport
cancancan
bullet_train-routes (1.0.0)
rails (>= 6.0.0)
bullet_train-scope_questions (1.6.34)
bullet_train-scope_questions (1.6.35)
rails (>= 6.0.0)
bullet_train-scope_validator (1.6.34)
bullet_train-scope_validator (1.6.35)
rails
bullet_train-sortable (1.6.34)
bullet_train-sortable (1.6.35)
rails (>= 6.0.0)
bullet_train-super_load_and_authorize_resource (1.6.34)
bullet_train-super_load_and_authorize_resource (1.6.35)
cancancan
rails (>= 6.0.0)
bullet_train-super_scaffolding (1.6.34)
bullet_train-super_scaffolding (1.6.35)
colorizer
indefinite_article
masamune-ast (~> 2.0.2)
rails (>= 6.0.0)
bullet_train-themes (1.6.34)
bullet_train-themes (1.6.35)
bullet_train-fields
nice_partials (~> 0.9)
rails (>= 6.0.0)
bullet_train-themes-light (1.6.34)
bullet_train-themes-light (1.6.35)
bullet_train-themes-tailwind_css
masamune-ast (~> 2.0.2)
rails (>= 6.0.0)
bullet_train-themes-tailwind_css (1.6.34)
bullet_train-themes-tailwind_css (1.6.35)
bullet_train-themes
rails (>= 6.0.0)
cable_ready (5.0.3)
Expand Down Expand Up @@ -364,7 +364,7 @@ GEM
jsbundling-rails (1.2.1)
railties (>= 6.0.0)
json (2.6.3)
jwt (2.8.0)
jwt (2.8.1)
base64
knapsack_pro (5.7.0)
rake
Expand Down Expand Up @@ -654,7 +654,7 @@ GEM
stimulus-rails (1.3.0)
railties (>= 6.0.0)
stringio (3.0.8)
stripe (10.10.0)
stripe (10.11.0)
terser (1.1.20)
execjs (>= 0.3.0, < 3)
thor (1.3.0)
Expand Down Expand Up @@ -712,24 +712,24 @@ DEPENDENCIES
avo (>= 3.1.7)
aws-sdk-s3
bootsnap
bullet_train (= 1.6.34)
bullet_train-api (= 1.6.34)
bullet_train-fields (= 1.6.34)
bullet_train-has_uuid (= 1.6.34)
bullet_train-incoming_webhooks (= 1.6.34)
bullet_train-integrations (= 1.6.34)
bullet_train-integrations-stripe (= 1.6.34)
bullet_train-obfuscates_id (= 1.6.34)
bullet_train-outgoing_webhooks (= 1.6.34)
bullet_train-roles (= 1.6.34)
bullet_train-scope_questions (= 1.6.34)
bullet_train-scope_validator (= 1.6.34)
bullet_train-sortable (= 1.6.34)
bullet_train-super_load_and_authorize_resource (= 1.6.34)
bullet_train-super_scaffolding (= 1.6.34)
bullet_train-themes (= 1.6.34)
bullet_train-themes-light (= 1.6.34)
bullet_train-themes-tailwind_css (= 1.6.34)
bullet_train (= 1.6.35)
bullet_train-api (= 1.6.35)
bullet_train-fields (= 1.6.35)
bullet_train-has_uuid (= 1.6.35)
bullet_train-incoming_webhooks (= 1.6.35)
bullet_train-integrations (= 1.6.35)
bullet_train-integrations-stripe (= 1.6.35)
bullet_train-obfuscates_id (= 1.6.35)
bullet_train-outgoing_webhooks (= 1.6.35)
bullet_train-roles (= 1.6.35)
bullet_train-scope_questions (= 1.6.35)
bullet_train-scope_validator (= 1.6.35)
bullet_train-sortable (= 1.6.35)
bullet_train-super_load_and_authorize_resource (= 1.6.35)
bullet_train-super_scaffolding (= 1.6.35)
bullet_train-themes (= 1.6.35)
bullet_train-themes-light (= 1.6.35)
bullet_train-themes-tailwind_css (= 1.6.35)
capybara (~> 3.39)
capybara-email
capybara-lockstep
Expand Down
1 change: 1 addition & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

# whitelist ngrok domains.
config.hosts << /[a-z0-9-]+\.ngrok\.io/
config.hosts << /[a-z0-9-]+\.ngrok-free\.app/

config.action_mailer.delivery_method = :letter_opener
config.active_job.queue_adapter = :sidekiq
Expand Down
6 changes: 4 additions & 2 deletions config/initializers/bullet_train.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
BulletTrain.configure do |config|
# Uncomment this line if you want to bypass strong passwords.
# config.strong_passwords = false
# Use strong passwords when registering a user in non-development environment.
# Please note that the password validations for devise are still in place
# in all environments.
config.strong_passwords = !Rails.env.development?

# Enable bulk invitations on the user onboarding step.
# config.enable_bulk_invitations = true
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "app",
"private": true,
"dependencies": {
"@bullet-train/bullet-train": "1.6.34",
"@bullet-train/bullet-train-sortable": "1.6.34",
"@bullet-train/fields": "1.6.34",
"@bullet-train/bullet-train": "1.6.35",
"@bullet-train/bullet-train-sortable": "1.6.35",
"@bullet-train/fields": "1.6.35",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@fullhuman/postcss-purgecss": "5.0.0",
"@hotwired/turbo-rails": "^8.0.3",
Expand Down
9 changes: 9 additions & 0 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,17 @@ def sign_in_from_homepage(display_details = self.display_details)

def new_registration_page(display_details = self.display_details)
# TODO: Adjust tests to start from the home page.
# Ensure no one is signed in before trying to register a new account.
logout

visit new_user_registration_path

if invitation_only?
assert_text("You need to sign in or sign up before continuing.")
refute_text("Create Your Account")
visit invitation_path(key: ENV["INVITATION_KEYS"].split(",\s+").first)
end

# this forces capybara to wait until the proper page loads.
# otherwise our tests will immediately start trying to match things before the page even loads.
assert_text("Create Your Account")
Expand Down
10 changes: 7 additions & 3 deletions test/system/reactivity_system_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ def teardown
end
end

# We should be on the account dashboard with no Creative Concepts listed.
# Ensure the user was able to sign up successfully.
assert_text "My Super Team’s Dashboard"
@team = Team.find_by(name: "My Super Team")

visit account_team_scaffolding_absolutely_abstract_creative_concepts_path(@team)
assert_text "If you're wondering what this"
assert_text "Add New Creative Concept"

# Open a new window. We'll bounce back and forth between these two to ensure updates are happening in both places.
current_url = page.current_url
Expand All @@ -47,7 +51,7 @@ def teardown
# We're going to do some activity and assertions within the new window.
within_window second_window do
visit current_url
assert_text "My Super Team’s Dashboard"
assert_text "My Super Team’s Creative Concepts"

# Ensure we're on a page with no Creative Concepts listed.
# (This sets us up to confirm that an entire table manifests out of nowhere.)
Expand All @@ -65,7 +69,7 @@ def teardown

within_window second_window do
# Ensure we're still on the same page.
assert_text "My Super Team’s Dashboard"
assert_text "My Super Team’s Creative Concepts"

# But now the new Creative Concept should be present on the page.
assert_text "My Generic Creative Concept"
Expand Down
4 changes: 2 additions & 2 deletions test/system/super_scaffolding/super_scaffolding_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def setup
end

test "OpenAPI V3 document is still valid" do
visit "http://127.0.0.1:3001/api/v1/openapi.yaml"
puts(output = `yarn exec redocly lint http://127.0.0.1:3001/api/v1/openapi.yaml 1> /dev/stdout 2> /dev/stdout; rm openapi.yaml`)
visit "/" # Make sure the test server is running before linting the file.
puts(output = `yarn exec redocly lint http://127.0.0.1:3001/api/v1/openapi.yaml 1> /dev/stdout 2> /dev/stdout`)
# redocly/openapi-core changed the format of their success message in version 1.2.0.
# https://github.com/Redocly/redocly-cli/pull/1239
# We use a robust regex here so that we can match both formats.
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading