Skip to content

Commit 7cefa09

Browse files
committed
rb - chrome profile zip no longer applicable for current options
1 parent 88fdb88 commit 7cefa09

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

rb/lib/selenium/webdriver/chrome/profile.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def as_json(*)
8181

8282
opts = {directory: @directory || layout_on_disk}
8383
opts[:extensions] = extensions if extensions
84-
opts[:zip] = Zipper.zip(@directory)
8584
opts
8685
end
8786

rb/spec/integration/selenium/webdriver/chrome/profile_spec.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ module Chrome
4343
driver.quit
4444
end
4545

46-
it 'should be serializable to JSON' do
47-
profile['foo.boolean'] = true
48-
49-
new_profile = Profile.from_json(profile.to_json)
50-
expect(new_profile['foo.boolean']).to be true
51-
end
52-
5346
it 'adds an extension' do
5447
ext_path = '/some/path.crx'
5548

@@ -68,10 +61,8 @@ module Chrome
6861
expect(ext_file).to receive(:read).and_return 'test'
6962

7063
expect(profile).to receive(:layout_on_disk).and_return 'ignored'
71-
expect(Zipper).to receive(:zip).and_return 'ignored'
7264

73-
expect(profile.as_json).to eq(zip: 'ignored',
74-
directory: 'ignored',
65+
expect(profile.as_json).to eq(directory: 'ignored',
7566
extensions: [Base64.strict_encode64('test')])
7667
end
7768

0 commit comments

Comments
 (0)