Feature: Rosey Build Resilience Background: Given I have the environment variables: | ROSEY_SOURCE | dist/site | | ROSEY_DEST | dist/translated_site | Scenario: Rosey build ignores images without a src Given I have a "dist/site/index.html" file with the content: """
Kiss From A Rose
""" And I have a "rosey/locales/em.json" file with the content: """ { "seal": "👄🌹" } """ When I run my program with the flags: | build | Then I should see a selector 'p' in "dist/translated_site/em/index.html" with the attributes: | data-rosey | seal | | innerText | 👄🌹 | Scenario: Complex HTML translation Given I have a "dist/site/index.html" file with the content: """Kiss From A Rose
Kiss From A Rose
" } """ When I run my program with the flags: | build | Then I should see a selector 'div > p' in "dist/translated_site/en/index.html" with the attributes: | innerText | Kiss From A Rose | And I should see a selector 'div > video' in "dist/translated_site/airy/index.html" with the attributes: | loop | | And I should see '' in "dist/translated_site/airy/index.html" And I should see '' in "dist/translated_site/airy/index.html"