diff --git a/test/system/registrar_area/xml_consoles_test.rb b/test/system/registrar_area/xml_consoles_test.rb
index 7c4a074a9..a6555ce71 100644
--- a/test/system/registrar_area/xml_consoles_test.rb
+++ b/test/system/registrar_area/xml_consoles_test.rb
@@ -16,6 +16,14 @@ class RegistrarAreaXmlConsolesTest < ApplicationSystemTestCase
def test_update_dnskey
@domain = domains(:shop)
+ @dnskey = dnskeys(:one)
+ @dnskeynew = dnskeys(:two)
+ visit registrar_xml_console_path
+ fill_in 'payload', with: schema_dnskey_rem(@dnskey)
+ click_on 'Send EPP Request'
+ fill_in 'payload', with: schema_dnskey_rem(@dnskeynew)
+ click_on 'Send EPP Request'
+
visit registrar_xml_console_path
fill_in 'payload', with: schema_dnskey_add
click_on 'Send EPP Request'
@@ -39,8 +47,35 @@ class RegistrarAreaXmlConsolesTest < ApplicationSystemTestCase
private
+ def schema_dnskey_rem(key)
+ <<~XML
+
+
+
+
+
+ shop.test
+
+
+
+
+
+
+ #{key.flags}
+ #{key.protocol}
+ #{key.alg}
+ #{key.public_key}
+
+
+
+
+ 0.04946500 1632965705
+
+
+ XML
+ end
+
def schema_dnskey_add
- @dnskey = dnskeys(:one)
<<~XML