inferno_core 0.1.4.pre → 0.2.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01e79c40f1051646f284439abdf537dfff524de78fee0837511b66681e997e16
4
- data.tar.gz: '00759057270c563dc193cc76ecd869febfd767fa3ac4de51de0dc000f74103e5'
3
+ metadata.gz: 255b4cc7cc06095fdc12171664609f8e8bf174f5972684ce2c6942d80d9d39c1
4
+ data.tar.gz: edffe5f9107b0b0a8e72390babeb409f83118f2af7b067ec307e7ec398703e85
5
5
  SHA512:
6
- metadata.gz: 89b46a4683518f552a13f62d6ef241af0feb31d93eefaa8553576ba0242fca2c85a316f81513034bcb48cf4a0644c3aabd1ab165e84b39faebb8f97913f487c7
7
- data.tar.gz: 728d39ce5ef5c407d232912f9c09ab89b1b4bf7c33290fdc9200d4ccea3185b0a6ec7007c6ad6fd0e92c15ba80b94440658c26d57a0f36ba253e4566abd0bfc4
6
+ metadata.gz: 6bf49ec9900d7c59d8d0d59b8809d459597c9dcaffd1582272d2394b50e9e12441b69d879c71a7fde04f0367c63b0f3ecac87ceddee9c4b383dd1ec1760acfa5
7
+ data.tar.gz: 413ffc8858165c5e58346fd341c6e090c2687b2cb198f2f7f068babbb821f359280157e94cdb0239ea584c1c4a23c6ae6d0cf01833b9b2875506b2357545275c
@@ -40,6 +40,6 @@
40
40
  To begin the development, run `npm start` or `yarn start`.
41
41
  To create a production bundle, use `npm run build` or `yarn build`.
42
42
  -->
43
- <script src='<%= Inferno::Application['js_host'] %>/bundle.js'></script>
43
+ <script src='<%= Inferno::Application['js_host'] %>/bundle.js?<%= Inferno::Application['cache_bust_token']%>'></script>
44
44
  </body>
45
45
  </html>
@@ -21,6 +21,7 @@ module Inferno
21
21
  Application.register('async_jobs', ENV['ASYNC_JOBS'] != 'false')
22
22
  Application.register('inferno_host', ENV.fetch('INFERNO_HOST', 'http://localhost:4567'))
23
23
  Application.register('base_url', URI.join(Application['inferno_host'], base_path).to_s)
24
+ Application.register('cache_bust_token', SecureRandom.uuid)
24
25
 
25
26
  configure do |config|
26
27
  config.root = File.expand_path('../../..', __dir__)
@@ -55,7 +55,7 @@ module Inferno
55
55
 
56
56
  # @private
57
57
  def redirect_route
58
- "#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{waiting_group_id}"
58
+ "#{Application['base_url']}/test_sessions/#{test_run.test_session_id}##{resume_ui_at_id}"
59
59
  end
60
60
 
61
61
  # @private
@@ -64,8 +64,8 @@ module Inferno
64
64
  end
65
65
 
66
66
  # @private
67
- def waiting_group_id
68
- test.parent.id
67
+ def resume_ui_at_id
68
+ test_run.test_suite_id || test_run.test_group_id || test.parent.id
69
69
  end
70
70
 
71
71
  # @private