Skip to content

Commit

Permalink
Update: add github login testing
Browse files Browse the repository at this point in the history
  • Loading branch information
m2rads committed Nov 15, 2024
1 parent 4164984 commit 663255a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/__tests__/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ interface LoginState {

define('Validate login feature implemented with Clerk', () => {

new UITestBuilder<LoginState>('/')
.test('Login to the app using Email and Password')
.given('username and password', { username: '[email protected]', password: 'Shortest1234' })
.when('Logged in, click on view dashboard button')
.expect('should successfully redirect to /')
// new UITestBuilder<LoginState>('/')
// .test('Login to the app using Email and Password')
// .given('username and password', { username: 'argo.mohrad@gmail.com', password: 'Shortest1234' })
// .when('Logged in, click on view dashboard button')
// .expect('should successfully redirect to /')

// new UITestBuilder<LoginState>('/')
// .test('Login to the app using Google account')
// .given('username and password', { username: 'test', password: 'test' })
// .expect('should successfully redirect to /dashboard')
new UITestBuilder<LoginState>('/')
.test('Login to the app using Github login')
.given('Github username and password', { username: `${process.env.GITHUB_USERNAME}`, password: `${process.env.GITHUB_PASSWORD}` })
.expect('should successfully redirect to /dashboard')

});

0 comments on commit 663255a

Please sign in to comment.