Skip to content

Commit

Permalink
Login feature sucessfully testedggg
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrity17 committed Dec 14, 2023
1 parent 05232dc commit 4db8c45
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 2 deletions.
2 changes: 2 additions & 0 deletions akriti/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./node_modules
./acceptance/stepDefinitions/NOTE.TXT
13 changes: 13 additions & 0 deletions akriti/tests/acceptance/PageObject/EntityPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// const puppeteer =require('puppeteer')

class EntityPage{
constructor() {




}

}
module.exports = EntityPage;

15 changes: 15 additions & 0 deletions akriti/tests/acceptance/features/entity.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Feature: entity
As a user
I want to create files and folders
So I can manage the files and folders

# Scenario: User Login with correct username and valid password
# When user logs in with username "admin" and password "admin"
# Then user should redirect to the homepage


Scenario: user create a file
Given the user has browsed to the login page
And user logged in with username "admin123" and password "12345"
When user creates a file "demo.txt" with content "hello world !!"
Then user should see the "demo.txt" file
4 changes: 2 additions & 2 deletions akriti/tests/acceptance/features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Background:


Scenario: User Login with correct username and valid password
When user logs in with username "admin" and password "admin"
Then user should redirect to the homepage
When user logs in with username "admin" and password "admin"
Then user should redirect to the homepage


Scenario Outline: login with invalid credendial
Expand Down
25 changes: 25 additions & 0 deletions akriti/tests/acceptance/stepDefinitions/entityContext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const { Given, When, Then } = require('@cucumber/cucumber');
const { expect, test, _android } = require('@playwright/test');
const assert = require("assert")






Given('user logged in with username {string} and password {string}', function (string, string2) {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});

When('user creates a file {string} with content {string}', function (string, string2) {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
Then('user should see the {string} file', function (string) {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});



0 comments on commit 4db8c45

Please sign in to comment.