Skip to content

Instantly share code, notes, and snippets.

@gs
gs / env.rb
Created July 21, 2022 20:06
Capybara with selenium chrome - for @javascript
require 'capybara'
require 'cucumber/rails'
Capybara.register_driver :selenium_chrome_headless do |app|
browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
opts.args << "--window-size=1920,1080"
opts.args << "--headless"
end
simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000040c730 h=--& v=--& _UIToolbarContentView:0x14ea07100.width == 0 (active)>",
"<NSLayoutConstraint:0x60000041edf0 H:|-(0)-[_UIButtonBarStackView:0x14dd0be30] (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
"<NSLayoutConstraint:0x60000041eda0 H:[_UIButtonBarStackView:0x14dd0be30]-(0)-| (active, names: '|':_UIToolbarContentView:0x14ea07100 )>",
stripe listen --forward-to localhost:3000/pay/webooks/stripe
> Ready! You are using Stripe API Version [2022-11-15]. Your webhook signing secret is whsec_0a8171d6b4418d4f240805576b9ad12f3be713b436f540f27034112f80529ae4 (^C to quit)
2023-02-26 18:59:49 --> checkout.session.completed [evt_1MfoVlLqQSw5ZyY2FrWwKf5x]
2023-02-26 18:59:49 --> charge.succeeded [evt_3MfoVjLqQSw5ZyY21Y9KIlq4]
2023-02-26 18:59:49 <-- [404] POST http://localhost:3000/pay/webooks/stripe [evt_1MfoVlLqQSw5ZyY2FrWwKf5x]
2023-02-26 18:59:49 <-- [404] POST http://localhost:3000/pay/webooks/stripe [evt_3MfoVjLqQSw5ZyY21Y9KIlq4]
2023-02-26 18:59:49 --> invoice.created [evt_1MfoVlLqQSw5ZyY27QxgwooV]
2023-02-26 18:59:49 <-- [404] POST http://localhost:3000/pay/webooks/stripe [evt_1MfoVlLqQSw5ZyY27QxgwooV]
2023-02-26 18:59:49 --> invoice.finalized [evt_1MfoVlLqQSw5ZyY2peHwQuzi]
2023-02-26 18:59:49 <-- [404] POST http://localhost:3000/pay/webooks/stripe [evt_1MfoVlLqQSw5ZyY2peHwQuzi]
023-02-26 19:55:44 --> customer.created [evt_1MfpNsLqQSw5ZyY2v2b9iDp7]
2023-02-26 19:55:44 [ERROR] Failed to POST: Post "http://localhost/pay/webooks/stripe": dial tcp [::1]:80: connect: connection refused
2023-02-26 19:56:08 --> charge.succeeded [evt_3MfpOELqQSw5ZyY20Brhtbf4]
2023-02-26 19:56:08 [ERROR] Failed to POST: Post "http://localhost/pay/webooks/stripe": dial tcp [::1]:80: connect: connection refused
2023-02-26 19:56:08 --> payment_method.attached [evt_1MfpOGLqQSw5ZyY2fD62i7gg]
2023-02-26 19:56:08 [ERROR] Failed to POST: Post "http://localhost/pay/webooks/stripe": dial tcp [::1]:80: connect: connection refused
2023-02-26 19:56:08 --> customer.updated [evt_1MfpOGLqQSw5ZyY22mHPURoN]
10:55:50 web.1 | Started POST "/admin/api/run_api_request" for 127.0.0.1 at 2023-05-17 10:55:50 +0200
10:55:50 web.1 | Processing by Motor::RunApiRequestsController#create as HTML
10:55:50 web.1 | Parameters: {"data"=>{"body"=>{"reason"=>"sdafasdfadsf"}, "api_config_name"=>"/api", "path"=>"v1/event/{id}/status", "method"=>"post"}}
10:55:50 web.1 | Motor::ApiConfig Load (0.2ms) SELECT "motor_api_configs".* FROM "motor_api_configs" WHERE "motor_api_configs"."name" = $1 LIMIT $2 [["name", "/api"], ["LIMIT", 1]]
10:55:50 web.1 | bad URI(is not URI?): "/api/v1/event/{id}/status"
10:55:50 web.1 | /Users/sfistak/.rubies/ruby-3.2.1/lib/ruby/3.2.0/uri/rfc3986_parser.rb:66:in `split'
10:55:50 web.1 | /Users/sfistak/.rubies/ruby-3.2.1/lib/ruby/3.2.0/uri/rfc3986_parser.rb:71:in `parse'
10:55:50 web.1 | /Users/sfistak/.rubies/ruby-3.2.1/lib/ruby/3.2.0/uri/common.rb:193:in `parse'
10:55:50 web.1 | /Users/sfistak/.rubies/ruby-3.2.1/lib/ruby/3.2.0/uri/common.rb:722:in `URI'
10:55:50 web.1 | /Users/sfistak/cod
Witam,
prosze zastapic tabele w `dritte tabele` ponizsza tabela.
Aby tabela byla na srodku, nalezy ustawic wartosci "width" wg swojego uznania.
<!-- Dritte Tabellenzeile - Gibt unter der gesamten Seite noch einmal eine Zeile aus
für weitere Dinge wie Copyright oder Link zum Impressum welche auf jeder Seite zu sehen sein sollen
-->