drashland / sinco

Browser Automation and Testing Tool for Deno, written in full TypeScript
https://drash.land/sinco
MIT License
57 stars 3 forks source link

BREAKING: Refactor whole codebase #145

Open ebebbington opened 4 months ago

ebebbington commented 4 months ago

General

buildFor

Browser/Client

.page()

This is part of the bigger picture to remove this page management we felt wasn't needed

.closeAllPagesExcept()

This is part of the bigger picture to remove this page management we felt wasn't needed

Elements

.file()/.files()

.value()

.takeScreenshot()

.click()

Page

.querySelector()

.close()

.expectWaitForRequest()

.location()

.assertNoConsoleErrors() --> .consoleErrors()

.takeScreenshot()

Idea was to give the responsibility of handling/saving the file to the user, so you can save it if you wish

.expectDialog

ebebbington commented 4 months ago

Big change log i need to eventually work up.. but in a nutshell:

(note: idea is to just be simple man... a lightweight way to just run a subprocess to get some browser tests done)