Speed up multiple options switching in e2e tests

This commit is contained in:
Bubka 2023-09-01 15:22:18 +02:00
parent 74ccbaa7c9
commit 4bd5cd0d62
4 changed files with 61 additions and 27 deletions

View File

@ -18,6 +18,16 @@ Run Set Option Keyword And Come Back
Run Keyword ${set option keyword} Run Keyword ${set option keyword}
Go To ${current url} Go To ${current url}
Run Multiple Set Option Keyword And Come Back
[Arguments] @{set option keywords}
${current url} = Get Location
Go To Options Settings Page
FOR ${keyword} IN @{set option keywords}
Close Notification
Run Keyword ${keyword}
END
Go To ${current url}
Options Tab Is Active Options Tab Is Active
Run Keyword And Return Status Element Should Have Class lnkTabOptions router-link-active Run Keyword And Return Status Element Should Have Class lnkTabOptions router-link-active

View File

@ -34,32 +34,40 @@ All Otp Digits Should Not Be Grouped
END END
All Otp Digits Should Be Grouped By Pair All Otp Digits Should Be Grouped By Pair
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Pair ... Enable Option Password Formatting
... Set Option Password Formatting By Pair
Run Multiple Set Option Keyword And Come Back @{set option keywords}
@{otps} = Get OTP Values Shown On Home @{otps} = Get OTP Values Shown On Home
FOR ${otp} IN @{otps} FOR ${otp} IN @{otps}
Otp Digits Should Be Grouped By Pair ${otp} Otp Digits Should Be Grouped By Pair ${otp}
END END
All Otp Digits Should Be Grouped By Trio All Otp Digits Should Be Grouped By Trio
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Trio ... Enable Option Password Formatting
... Set Option Password Formatting By Trio
Run Multiple Set Option Keyword And Come Back @{set option keywords}
@{otps} = Get OTP Values Shown On Home @{otps} = Get OTP Values Shown On Home
FOR ${otp} IN @{otps} FOR ${otp} IN @{otps}
Otp Digits Should Be Grouped By Trio ${otp} Otp Digits Should Be Grouped By Trio ${otp}
END END
All Otp Digits Should Be Grouped By Half All Otp Digits Should Be Grouped By Half
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Half ... Enable Option Password Formatting
... Set Option Password Formatting By Half
Run Multiple Set Option Keyword And Come Back @{set option keywords}
@{otps} = Get OTP Values Shown On Home @{otps} = Get OTP Values Shown On Home
FOR ${otp} IN @{otps} FOR ${otp} IN @{otps}
Otp Digits Should Be Grouped By Half ${otp} Otp Digits Should Be Grouped By Half ${otp}
END END
Readable Otp Should Be Copied On Click Readable Otp Should Be Copied On Click
Run Set Option Keyword And Come Back Disable Option Show Otp As Dot @{set option keywords} = Create List
Run Set Option Keyword And Come Back Enable Option Password Formatting ... Disable Option Show Otp As Dot
... Enable Option Password Formatting
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Click Otp On Home To Copy It Click Otp On Home To Copy It
A Success Notification Should Appear A Success Notification Should Appear
Otp Notified As Copied Should Be In Clipboard Otp Notified As Copied Should Be In Clipboard

View File

@ -31,22 +31,28 @@ Otp Digits Should Not Be Grouped
Otp Digits Should Not Be Grouped ${otp value} Otp Digits Should Not Be Grouped ${otp value}
Otp Digits Should Be Grouped By Pair Otp Digits Should Be Grouped By Pair
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Pair ... Enable Option Password Formatting
... Set Option Password Formatting By Pair
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
${otp value}= Get OTP Value Shown In Modal ${otp value}= Get OTP Value Shown In Modal
Otp Digits Should Be Grouped By Pair ${otp value} Otp Digits Should Be Grouped By Pair ${otp value}
Otp Digits Should Be Grouped By Trio Otp Digits Should Be Grouped By Trio
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Trio ... Enable Option Password Formatting
... Set Option Password Formatting By Trio
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
${otp value}= Get OTP Value Shown In Modal ${otp value}= Get OTP Value Shown In Modal
Otp Digits Should Be Grouped By Trio ${otp value} Otp Digits Should Be Grouped By Trio ${otp value}
Otp Digits Should Be Grouped By Half Otp Digits Should Be Grouped By Half
Run Set Option Keyword And Come Back Enable Option Password Formatting @{set option keywords} = Create List
Run Set Option Keyword And Come Back Set Option Password Formatting By Half ... Enable Option Password Formatting
... Set Option Password Formatting By Half
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
${otp value}= Get OTP Value Shown In Modal ${otp value}= Get OTP Value Shown In Modal
Otp Digits Should Be Grouped By Half ${otp value} Otp Digits Should Be Grouped By Half ${otp value}
@ -66,9 +72,11 @@ Modal Should Not Be Closed After Otp Copy
Element Should Be Visible ${OTP} Element Should Be Visible ${OTP}
Readable Otp Should Be Copied On Click Readable Otp Should Be Copied On Click
Run Set Option Keyword And Come Back Disable Option Show Otp As Dot @{set option keywords} = Create List
Run Set Option Keyword And Come Back Enable Option Password Formatting ... Disable Option Show Otp As Dot
Run Set Option Keyword And Come Back Disable Option Copy Otp On Display ... Enable Option Password Formatting
... Disable Option Copy Otp On Display
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
Click Otp In Modal To Copy It Click Otp In Modal To Copy It
A Success Notification Should Appear A Success Notification Should Appear
@ -77,9 +85,11 @@ Readable Otp Should Be Copied On Click
Obfuscated Otp Should Be Copied On Click Obfuscated Otp Should Be Copied On Click
${random value} = Generate Random String 8 [LETTERS] ${random value} = Generate Random String 8 [LETTERS]
Copy To Clipboard ${random value} Copy To Clipboard ${random value}
Run Set Option Keyword And Come Back Enable Option Show Otp As Dot @{set option keywords} = Create List
Run Set Option Keyword And Come Back Enable Option Password Formatting ... Enable Option Show Otp As Dot
Run Set Option Keyword And Come Back Enable Option Copy Otp On Display ... Enable Option Password Formatting
... Enable Option Copy Otp On Display
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
Click Otp In Modal To Copy It Click Otp In Modal To Copy It
A Success Notification Should Appear A Success Notification Should Appear
@ -90,9 +100,11 @@ Obfuscated Otp Should Be Copied On Click
Should Match Regexp ${clipboard} ^\\d+$ Should Match Regexp ${clipboard} ^\\d+$
Readable Otp Should Be Copied On Display Readable Otp Should Be Copied On Display
Run Set Option Keyword And Come Back Disable Option Show Otp As Dot @{set option keywords} = Create List
Run Set Option Keyword And Come Back Enable Option Password Formatting ... Disable Option Show Otp As Dot
Run Set Option Keyword And Come Back Enable Option Copy Otp On Display ... Enable Option Password Formatting
... Enable Option Copy Otp On Display
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
A Success Notification Should Appear A Success Notification Should Appear
On Screen Otp Notified As Copied Should Be In Clipboard On Screen Otp Notified As Copied Should Be In Clipboard
@ -100,9 +112,11 @@ Readable Otp Should Be Copied On Display
Obfuscated Otp Should Be Copied On Display Obfuscated Otp Should Be Copied On Display
${random value} = Generate Random String 8 [LETTERS] ${random value} = Generate Random String 8 [LETTERS]
Copy To Clipboard ${random value} Copy To Clipboard ${random value}
Run Set Option Keyword And Come Back Enable Option Show Otp As Dot @{set option keywords} = Create List
Run Set Option Keyword And Come Back Enable Option Password Formatting ... Enable Option Show Otp As Dot
Run Set Option Keyword And Come Back Enable Option Copy Otp On Display ... Enable Option Password Formatting
... Enable Option Copy Otp On Display
Run Multiple Set Option Keyword And Come Back @{set option keywords}
Show An Otp In Modal Show An Otp In Modal
A Success Notification Should Appear A Success Notification Should Appear
Close Modal Otp Close Modal Otp

View File

@ -26,7 +26,6 @@ ${OTP} otp
${SUCCESS NOTIFICATION} css:#vueNotification .is-success ${SUCCESS NOTIFICATION} css:#vueNotification .is-success
${ALERT NOTIFICATION} css:#vueNotification .is-danger ${ALERT NOTIFICATION} css:#vueNotification .is-danger
${OTP OBFUSCATOR SYMBOL} ●
${CLEARED CLIPBOARD VALUE} -clear- ${CLEARED CLIPBOARD VALUE} -clear-
*** Keywords *** *** Keywords ***
@ -54,6 +53,9 @@ Go Authenticated To
A Success Notification Should Appear A Success Notification Should Appear
Wait Until Element Is Visible ${SUCCESS NOTIFICATION} Wait Until Element Is Visible ${SUCCESS NOTIFICATION}
Close Notification
Run Keyword And Ignore Error Click Element ${SUCCESS NOTIFICATION}
An Error Notification Should Appear An Error Notification Should Appear
Wait Until Element Is Visible ${ALERT NOTIFICATION} Wait Until Element Is Visible ${ALERT NOTIFICATION}