summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2018-07-03 21:40:54 +0000
committerintrigeri <intrigeri@boum.org>2018-07-03 23:23:53 +0000
commit6a221c4d266f870fd52f7dcc5e5880e981032012 (patch)
tree0bbcdcd97dee4e9d616713ecbbc31c8321f35473 /features
parent9e307d9c4cd9748d4bf3b878440b61a941f77543 (diff)
Test suite: adapt file saving dialog to Firefox 60 (refs: #15023)
… and incidentally, this image can be used by future tests of other GTK3 apps.
Diffstat (limited to 'features')
-rw-r--r--features/images/BrowserDownloadFileToDialog.pngbin2086 -> 0 bytes
-rw-r--r--features/images/Gtk3SaveFileDialog.pngbin0 -> 1862 bytes
-rw-r--r--features/images/TorBrowserSaveDialog.pngbin1343 -> 0 bytes
-rw-r--r--features/step_definitions/browser.rb2
-rw-r--r--features/step_definitions/common_steps.rb2
5 files changed, 2 insertions, 2 deletions
diff --git a/features/images/BrowserDownloadFileToDialog.png b/features/images/BrowserDownloadFileToDialog.png
deleted file mode 100644
index a1a861a..0000000
--- a/features/images/BrowserDownloadFileToDialog.png
+++ /dev/null
Binary files differ
diff --git a/features/images/Gtk3SaveFileDialog.png b/features/images/Gtk3SaveFileDialog.png
new file mode 100644
index 0000000..e4d451b
--- /dev/null
+++ b/features/images/Gtk3SaveFileDialog.png
Binary files differ
diff --git a/features/images/TorBrowserSaveDialog.png b/features/images/TorBrowserSaveDialog.png
deleted file mode 100644
index 0daa4aa..0000000
--- a/features/images/TorBrowserSaveDialog.png
+++ /dev/null
Binary files differ
diff --git a/features/step_definitions/browser.rb b/features/step_definitions/browser.rb
index 9beb777..ca9759a 100644
--- a/features/step_definitions/browser.rb
+++ b/features/step_definitions/browser.rb
@@ -194,7 +194,7 @@ end
When /^I save the file to the default Tor Browser download directory$/ do
@screen.click('BrowserDownloadDialogSaveAsButton.png')
- @screen.wait('BrowserDownloadFileToDialog.png', 10)
+ @screen.wait('Gtk3SaveFileDialog.png', 10)
@screen.type(Sikuli::Key.ENTER)
end
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 5638b04..1bf1461 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -744,7 +744,7 @@ end
When /^I (can|cannot) save the current page as "([^"]+[.]html)" to the (.*) directory$/ do |should_work, output_file, output_dir|
should_work = should_work == 'can' ? true : false
@screen.type("s", Sikuli::KeyModifier.CTRL)
- @screen.wait("TorBrowserSaveDialog.png", 10)
+ @screen.wait("Gtk3SaveFileDialog.png", 10)
if output_dir == "persistent Tor Browser"
output_dir = "/home/#{LIVE_USER}/Persistent/Tor Browser"
@screen.wait_and_click("GtkTorBrowserPersistentBookmark.png", 10)