Skip to content

Commit 0600769

Browse files
committed
update test_start_performance_record_and_stop
1 parent 69080b1 commit 0600769

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

test/functional/ios/ios/device_test.rb

+11-6
Original file line numberDiff line numberDiff line change
@@ -280,18 +280,23 @@ def test_viewport_screenshot
280280
assert !File.exist?(file.path)
281281
end
282282

283+
# Requires --relaxed-security server flag
283284
def test_start_performance_record_and_stop
284-
@@driver.start_performance_record(timeout: 300_000, profile_name: 'Activity Monitor')
285+
file_path = './test_start_performance_record_and_stop.zip'
286+
File.delete file_path if File.exist? file_path
285287

286-
sleep 3
288+
@@driver.start_performance_record(timeout: 300_000, profile_name: 'Time Profiler')
287289

290+
@@driver.find_element(:accessibility_id, 'Buttons').click
291+
sleep 2
292+
@@driver.back
293+
sleep 1
294+
295+
# Get .zip file
288296
file = @@driver.get_performance_record(save_file_path: './test_start_performance_record_and_stop',
289-
profile_name: 'Activity Monitor')
297+
profile_name: 'Time Profiler')
290298

291299
assert File.exist?(file.path)
292-
293-
File.delete file.path
294-
assert !File.exist?(file.path)
295300
end
296301

297302
def test_clipbord

0 commit comments

Comments
 (0)