-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add docs for ide #342
add docs for ide #342
Conversation
README.md
Outdated
``` clojure | ||
(def driver (chrome)) | ||
(def ide-file (io/resources "ide/test.side"')) | ||
(def base-url (-> "html/test.html" io/resources str)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
какое-то время не мог понять эту строку. Это чтобы получить урл типа file://..../html.test
? И еще момент: в io/resources
на конце лишняя s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, это пример из наших тестов локальных, мб просто гугол написать?)
README.md
Outdated
|
||
``` clojure | ||
(def driver (chrome)) | ||
(def ide-file (io/resources "ide/test.side"')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь лишняя s
на конце resources
и лишняя одинарная кавычка
README.md
Outdated
(def ide-file (io/resources "ide/test.side"')) | ||
(def base-url (-> "html/test.html" io/resources str)) | ||
|
||
(ide/run-ide-script driver ide-file {:base-url base-url :test-name "test-asserts"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно добавить, что base-url нужен, чтобы переопределить базовый урл из файла. Например, файл был записан на локальной машине (http://localhost:8080
), а мы хотим выполнить на стейджинге (https://preprod-001.company.com
)
И добавить здесь список опций, которые могут быть в options
#336