mercredi 31 janvier 2018

How to access a created factory bot value in cucumber step definitions?

I m new to factory bot and cucumber, How to access a created record using factory_bot in step definition? test/factories.rb

FactoryBot.define do factory :signuser do email 'abcd1123@test.xyz' password 'test123' password_confirmation 'test123' end end

In console FactoryBot.create(:signuser)

features/test_step.rb

When (/^enter exists details for Register$/)do

I want to access email "abcd1123@test.xyz" and password "test123" here in textfield

end

Aucun commentaire:

Enregistrer un commentaire