Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
new scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosDeBenito committed Apr 3, 2019
1 parent 059e596 commit a598eda
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 28 deletions.
8 changes: 8 additions & 0 deletions cucumberTest/src/features/app2.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Feature: Go to the login
Display the new chat button

@loginTitle-scenario
Scenario: Login Page
Given I am on the login page
When I do nothing
Then I should see the new chat button
22 changes: 22 additions & 0 deletions cucumberTest/src/steps/app2.steps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Before, Given, Then, When } from 'cucumber';
import { expect } from 'chai';

import { AppPage } from '../app.po';

let page: AppPage;

Before(() => {
page = new AppPage();
});


// Go to the login - Display the new chat button
Given(/^I am on the login page$/,{ timeout: 5 * 1000 }, async () => {
await page.navigateToLogin();
});
When(/^I do nothing$/, () => {});

Then(/^I should see the new chat button$/, async () => {
// expect(await page.getTitleText()).to.equal('Welcome to angular-cli-cucumber-demo!');
expect(await page.getTitleText()).to.equal('New chat');
});
41 changes: 13 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a598eda

Please sign in to comment.