Stirling-PDF/testdriver/test.yml

141 lines
4.2 KiB
YAML
Raw Normal View History

Add tests via TestDriverAI (#1957) (#2005) * initial Commit * update prerun * tweak the prompt * update the test * finetune prompt * change the prompt * minor change to retry test * add debug --------- # Description Please provide a summary of the changes, including relevant motivation and context. Closes #(issue_number) ## Checklist - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] My changes generate no new warnings - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) --------- Signed-off-by: GitHub Action <action@github.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: Tarun Kumar S <srfashions.tarun@gmail.com> Co-authored-by: Ian Jennings <ian@meetjennings.com> Co-authored-by: Corbinian Grimm <23664150+pixma140@users.noreply.github.com> Co-authored-by: albanobattistella <34811668+albanobattistella@users.noreply.github.com> Co-authored-by: Eric <71648843+sbplat@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: swanemar <107953493+swanemar@users.noreply.github.com> Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Manuel Mora Gordillo <manuito@gmail.com> Co-authored-by: Manu <manuel@fusiontelecom.co> Co-authored-by: Ludy <Ludy87@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Florian Fish <florian@poissonmail.fr> Co-authored-by: reecebrowne <74901996+reecebrowne@users.noreply.github.com> Co-authored-by: Dimitrios Kaitantzidis <james_k23@hotmail.gr> Co-authored-by: Rania Amina <reaamina@gmail.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: Philip H. <47042125+pheiduck@users.noreply.github.com> Co-authored-by: Saud Fatayerji <Sf298@users.noreply.github.com> Co-authored-by: MaratheHarshad <97970262+MaratheHarshad@users.noreply.github.com> Co-authored-by: Harshad Marathe <harshad@DESKTOP-1MNKUHA> Co-authored-by: ninjat <hotanya.r@gmail.com> Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org> Co-authored-by: Rafael Encinas <rafael.encinas@encora.com> Co-authored-by: Renan <82916964+thisisrenan@users.noreply.github.com> Co-authored-by: leo-jmateo <128976497+leo-jmateo@users.noreply.github.com> Co-authored-by: S. Neuhaus <neuhaus@users.noreply.github.com> Co-authored-by: Dimitris Kaitantzidis <44621809+DimK10@users.noreply.github.com>
2025-01-13 20:06:48 +01:00
version: 4.0.44
steps:
- prompt: open chrome
commands:
- command: focus-application
name: Google Chrome
- prompt: click on view PDF
commands:
- command: focus-application
name: Google Chrome
- command: hover-text
text: View PDF
description: button to view PDF
action: click
- prompt: click on view PDF
commands:
- command: wait
timeout: 5000
- command: assert
expect: a pdf is open
- prompt: go back to the previous page
commands:
- command: focus-application
name: Google Chrome
- command: press-keys
keys:
- alt
- left
- prompt: go back to the previous page
commands:
- command: assert
expect: it is in homepage
- prompt: >-
click on sun icon in the header section and make sure the theme of the
website changes, if it does then change it back by clicking on the moon
icon at the exact same place
commands:
- command: focus-application
name: Google Chrome
- command: hover-image
description: sun icon in the header section
action: click
- command: assert
expect: the theme of the website has changed
- command: hover-image
description: moon icon in the header section
action: click
- prompt: >-
click on search icon in the header section and search for "rotate", click
on it in the drop down, you will be taken to the rotate pdf page, if so
then go back to the homepage
commands:
- command: focus-application
name: Google Chrome
- command: hover-image
description: search icon in the header section
action: click
- command: type
text: rotate
- command: wait
timeout: 2000
- command: hover-text
text: Rotate
description: dropdown option for rotate
action: click
- command: wait
timeout: 5000
- command: assert
expect: the page title is "Rotate PDF"
- command: press-keys
keys:
- alt
- left
- prompt: >-
click on search bar and search for "rotate", click on it in the drop down,
you will be taken to the rotate pdf page, if so then go back to the
homepage
commands:
- command: focus-application
name: Google Chrome
- command: hover-text
text: Search for features...
description: search bar
action: click
- command: type
text: rotate
- command: wait
timeout: 2000
- command: hover-text
text: Rotate
description: dropdown option for rotate
action: click
- command: wait
timeout: 5000
- command: assert
expect: the page title is "Rotate PDF"
- command: press-keys
keys:
- alt
- left
- command: wait
timeout: 2000
- prompt: >-
click on Tools button in the header section and Check if the background of
the merge button is highlighted when hovered over, similarly hover over a
few other buttons and check for the background of the button is highlighted
when hovered over
commands:
- command: focus-application
name: Google Chrome
- command: hover-text
text: Tools
description: Tools button in the header section
action: click
- command: assert
expect: the Tools dropdown is open
- command: hover-text
text: Merge
description: Merge button
action: hover
- command: assert
expect: the background of the Merge button is highlighted
- command: hover-text
text: PDF to Image
description: PDF to Image button
action: hover
- command: assert
expect: the background of the PDF to Image button is highlighted
- command: hover-text
text: PDF to CSV
description: PDF to CSV button
action: hover
- command: assert
expect: the background of the PDF to CSV button is highlighted
- command: hover-text
text: Sign
description: Sign button
action: hover
- command: assert
expect: the background of the Sign button is highlighted