summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/signup.py
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-11-30 19:11:57 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-11-30 19:25:23 -0200
commit8372b0127343df96cbe1ca33477ea0f197a873be (patch)
treeb052911125e6cd3036a650c97a510152a3147797 /service/test/functional/features/steps/signup.py
parenta8a7362054f4b49ea1fbc00fe7b556e6e6ea4590 (diff)
Add username to behave context
See: https://github.com/pixelated/project-issues/issues/381
Diffstat (limited to 'service/test/functional/features/steps/signup.py')
-rw-r--r--service/test/functional/features/steps/signup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/test/functional/features/steps/signup.py b/service/test/functional/features/steps/signup.py
index 1558004b..43480666 100644
--- a/service/test/functional/features/steps/signup.py
+++ b/service/test/functional/features/steps/signup.py
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-import uuid
from behave import given, then, when
from common import (
@@ -30,7 +29,7 @@ def step_impl(context):
@when(u'I enter username, password and password confirmation') # noqa
def step_impl(context):
- fill_by_css_selector(context, '#srp_username', 'testuser_{}'.format(uuid.uuid4()))
+ fill_by_css_selector(context, '#srp_username', context.username)
fill_by_css_selector(context, '#srp_password', 'password')
fill_by_css_selector(context, '#srp_password_confirmation', 'password')