μ΄ νμ΄μ§μ μλ₯Ό λ°λ₯΄κ³ μμ΅λλ€. cucumber-js/docs/nodejs_example.md
κ°λ μ§λκ°κΈ΄ νμ§λ§ νμμμλ λ§μ΄ λ°μ΅λλ€. μμ λ₯Ό μ λ°μ΄νΈν΄μΌ ν©λκΉ, μλλ©΄ ν μ€νΈ λ¬λμ λ¬Έμ μ λκΉ?
NodeJS v6.9.1
"chromedriver": "^2.28.0",
"cucumber": "2.0.0-rc.9",
"selenium-webdriver": "^3.3.0"
Feature: Example feature
As a user of Cucumber.js
I want to have documentation on Cucumber
So that I can concentrate on building awesome applications
Scenario: Reading documentation
β Given I am on the Cucumber.js GitHub repository
β When I click on "CLI"
β Then I should see "Running specific features"
Failures:
1) Scenario: Reading documentation - features/documentation.feature:6
Step: Then I should see "Running specific features" - features/documentation.feature:9
Step Definition: features/step_definitions/browser_steps.js:15
Message:
Error: function timed out after 5000 milliseconds
at Timeout.<anonymous> (node_modules/cucumber/lib/user_code_runner.js:91:22)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
1 scenario (1 failed)
3 steps (1 failed, 2 passed)
md5-2a2c7c10e6fd71308dbd83970eac71b5
Feature: Example feature
As a user of Cucumber.js
I want to have documentation on Cucumber
So that I can concentrate on building awesome applications
Scenario: Reading documentation
β Given I am on the Cucumber.js GitHub repository
- When I click on "CLI"
- Then I should see "Running specific features"
Failures:
1) Scenario: Reading documentation - features/documentation.feature:6
Step: Given I am on the Cucumber.js GitHub repository - features/documentation.feature:7
Step Definition: features/step_definitions/browser_steps.js:5
Message:
Error: function timed out after 5000 milliseconds
at Timeout.<anonymous> (node_modules/cucumber/lib/user_code_runner.js:91:22)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
1 scenario (1 failed)
3 steps (1 failed, 2 skipped)
λλ μ΄κ²μ΄ λλ₯Ό μν΄ μΌνκ³ μμμ νμΈνμ΅λλ€. μκ° μ΄κ³Όλ₯Ό λλ €μ£ΌμΈμ.
μμ : λ²κ±°λ‘κ² ν΄μ μ£μ‘ν©λλ€. μ΄ λ©μμ§λ₯Ό κ²μν μ§ 5λΆ λ§μ μ¬κΈ°μ μ€λͺ
λ λ¨κ³ μ ν μκ°μ λ리λ μ루μ
μ μ°Ύμ
@charlierudolph , μ΄λμμ μκ° μ΄κ³Όλ₯Ό λ리λμ? μ΄κ²μ auth0μ μ¬μ©νμ¬ λ‘κ·ΈμΈνκΈ° μν΄ μμ±ν κΈ°λ₯μ
λλ€.
login(userId, password): void {
let self: any = this;
self.signInButton.click().then(function () {
self.password.sendKeys(password)
// element(by.css('input[name="password"]')).sendKeys(password);
browser.waitForAngularEnabled(false);
self.email.sendKeys(userId);
self.loginSubmitButton.click().then(function() {
browser.driver.wait(function() {
return self.loginConfirmationWindow.isPresent();
}, 15000).then(function() {
return;
}, function(){
console.log(new Error('Login confirmed window did not show up'));
return;
})
self.loginConfirmationClose.click();
});
})
}
browser.driver.wait
ν¨μμ 15μ΄μ μκ° μ νμ μ£Όμλ€λ κ²μ μκ³ μμ§λ§ κ·Έκ²μ μ€μνμ§ μμ΅λλ€. λ¨κ³λ 5μ΄μ μκ° μ΄κ³Όλ©λλ€.
κ·Έλ° λ€μ config.tsμ λ€μ κ°μ μ μμ μΌλ‘ μΆκ°νλ €κ³ μλνμ΅λλ€.
allScriptsTimeout: 60000,
getPageTimeout: 60000,
setDefaultTimeout: 60000,
μ΄ λͺ¨λ νμλ μ¬μ ν λ€μ μ€λ₯κ° λ°μν©λλ€.
Error: function timed out after 5000 milliseconds
at Timeout.<anonymous> (/Users/mohamedr2/workspace/test_app/node_modules/cucumber/lib/user_code_runner.js:91:22)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
μ΄ μ€λ λλ λ«ν ν μ΅κ·Ό νλμ΄ μμκΈ° λλ¬Έμ μλμΌλ‘ μ κ²Όμ΅λλ€. κ΄λ ¨ λ²κ·Έμ λν μ λ¬Έμ λ₯Ό μ¬μμμ€.
κ°μ₯ μ μ©ν λκΈ
μμ : λ²κ±°λ‘κ² ν΄μ μ£μ‘ν©λλ€. μ΄ λ©μμ§λ₯Ό κ²μν μ§ 5λΆ λ§μ μ¬κΈ°μ μ€λͺ λ λ¨κ³ μ ν μκ°μ λ리λ μ루μ μ μ°Ύμ
@charlierudolph , μ΄λμμ μκ° μ΄κ³Όλ₯Ό λ리λμ? μ΄κ²μ auth0μ μ¬μ©νμ¬ λ‘κ·ΈμΈνκΈ° μν΄ μμ±ν κΈ°λ₯μ λλ€.
browser.driver.wait
ν¨μμ 15μ΄μ μκ° μ νμ μ£Όμλ€λ κ²μ μκ³ μμ§λ§ κ·Έκ²μ μ€μνμ§ μμ΅λλ€. λ¨κ³λ 5μ΄μ μκ° μ΄κ³Όλ©λλ€.κ·Έλ° λ€μ config.tsμ λ€μ κ°μ μ μμ μΌλ‘ μΆκ°νλ €κ³ μλνμ΅λλ€.
μ΄ λͺ¨λ νμλ μ¬μ ν λ€μ μ€λ₯κ° λ°μν©λλ€.