Enhance test execution with interactive controls; add pause, step, and dump functionalities in executor.js, and update step1.test for improved form handling and scrolling behavior.
This commit is contained in:
69
step1.test
69
step1.test
@@ -38,8 +38,9 @@ click element=button childText="Weiter"
|
||||
sleep 2000 "anmelden click"
|
||||
|
||||
# Part 2 - Fill in the checkout form
|
||||
scroll element=span childText="Vorname"
|
||||
|
||||
wait element=input name="firstName"
|
||||
scroll element=span childText="Vorname"
|
||||
fill element=input name="firstName" value="Max"
|
||||
sleep 100 "vorname fill"
|
||||
wait element=input name="lastName"
|
||||
@@ -57,74 +58,16 @@ sleep 100 "plz fill"
|
||||
wait element=input name="city"
|
||||
fill element=input name="city" value="Muster"
|
||||
sleep 100 "stadt fill"
|
||||
|
||||
wait element=textarea name="note"
|
||||
scroll element=textarea name="note"
|
||||
fill element=textarea name="note" value="Musteranmerkung"
|
||||
sleep 100 "note fill"
|
||||
sleep 1000000 "note fill"
|
||||
scroll element=button childText="Bestellung abschließen"
|
||||
wait element=label childText="Bestimmungen"
|
||||
click element=label childText="Bestimmungen"
|
||||
sleep 100 "checkbox checked"
|
||||
wait element=button childText="Bestellung abschließen"
|
||||
click element=button childText="Bestellung abschließen"
|
||||
sleep 300 "order completion"
|
||||
sleep 300000 "order completion"
|
||||
|
||||
# Part 3 - Login to the email account
|
||||
open "https://mail.growbnb.de/"
|
||||
sleep 100 "page load"
|
||||
wait element=input name="_user" id="rcmloginuser"
|
||||
fill element=input name="_user" id="rcmloginuser" value="autotest@growheads.de"
|
||||
sleep 100 "username fill"
|
||||
wait element=input name="_pass" id="rcmloginpwd"
|
||||
fill element=input name="_pass" id="rcmloginpwd" value="$PASSWORDMAIL"
|
||||
sleep 100 "password fill"
|
||||
wait element=button type="submit" id="rcmloginsubmit"
|
||||
click element=button type="submit" id="rcmloginsubmit"
|
||||
sleep 100 "login submit"
|
||||
# Wait for and click on the Bestellbestätigung link
|
||||
wait element=a childText="Bestellbestätigung"
|
||||
click element=a childText="Bestellbestätigung"
|
||||
|
||||
|
||||
# Click on "Mehr" button to open dropdown menu
|
||||
wait element=a id="messagemenulink"
|
||||
click element=a id="messagemenulink"
|
||||
sleep 300 "mehr button click"
|
||||
|
||||
# Click on "In neuem Fenster öffnen" link
|
||||
wait element=a id="rcmbtn134"
|
||||
click element=a id="rcmbtn134"
|
||||
|
||||
# Switch to the new window that was opened
|
||||
follow
|
||||
|
||||
# Verify that "Musteranmerkung" exists in the content
|
||||
wait element=p childText="Musteranmerkung"
|
||||
|
||||
# Extract the order URL from the link
|
||||
extract href from element=a childText="https://dev.seedheads.de/profile#W-" to "ORDER_URL"
|
||||
|
||||
wait element=a id="rcmbtn105"
|
||||
click element=a id="rcmbtn105"
|
||||
sleep 300 "email deleted"
|
||||
|
||||
# Now open the extracted URL
|
||||
open "$ORDER_URL"
|
||||
wait element=input type="email"
|
||||
fill element=input type="email" value="autotest@growheads.de"
|
||||
sleep 200 "email fill"
|
||||
wait element=input type="password"
|
||||
fill element=input type="password" value="$PASSWORD"
|
||||
sleep 200 "password fill"
|
||||
wait element=button childText="ANMELDEN" class="MuiButton-fullWidth"
|
||||
click element=button childText="ANMELDEN" class="MuiButton-fullWidth"
|
||||
sleep 300 "anmelden click"
|
||||
wait element=button childText="Schließen"
|
||||
click element=button childText="Schließen"
|
||||
sleep 100 "schließen click"
|
||||
wait element=button class="MuiIconButton-colorError"
|
||||
click element=button class="MuiIconButton-colorError"
|
||||
sleep 100 "stornieren click"
|
||||
wait element=button childText="Stornieren"
|
||||
click element=button childText="Stornieren"
|
||||
sleep 100 "stornieren click"
|
||||
sleep 10000 "completed"
|
||||
Reference in New Issue
Block a user