Skip to content
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

Merged
merged 2 commits into from
Oct 8, 2020
Merged

add docs for ide #342

merged 2 commits into from
Oct 8, 2020

Conversation

Uunnamed
Copy link
Contributor

@Uunnamed Uunnamed commented Oct 8, 2020

README.md Outdated
``` clojure
(def driver (chrome))
(def ide-file (io/resources "ide/test.side"'))
(def base-url (-> "html/test.html" io/resources str))
Copy link
Collaborator

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

Copy link
Contributor Author

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"'))
Copy link
Collaborator

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"})
Copy link
Collaborator

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

@Uunnamed Uunnamed merged commit 47bf11e into master Oct 8, 2020
@Uunnamed Uunnamed deleted the add-docs-for-ide branch October 8, 2020 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants