Skip to content

Commit

Permalink
add login feature
Browse files Browse the repository at this point in the history
  • Loading branch information
gkushang committed Aug 21, 2019
1 parent 1f85d7d commit 3088851
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@login
Feature: Login to Github

In order to contribute to Git repository
Fred, As a Github user
Wants to be able to login


@login
Scenario: Fred successfully logs in to contribute to the Git repository

Given Fred logs in with the valid credentials
Then he is able to contribute to the repository


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

Given(/Fred logs in with the valid credentials/, () => {
//Implement
});

When(/he is able to contribute to the repository/, () => {
//Implement
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {I, ghHomePage, ghSearchPage} = inject();

Given('Fred is on Github Homepage', () => {
Given(/Fred is on Github Homepage/, () => {
// navigate - genarally this should be part of Before hook.
// But to explain Background in feature file, we have it in stepdef
I.amOnPage('/');
Expand Down

0 comments on commit 3088851

Please sign in to comment.