Skip to content

Commit

Permalink
Trying some more
Browse files Browse the repository at this point in the history
  • Loading branch information
megoth-capgemini committed Nov 28, 2023
1 parent 2e2354b commit f7c685b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cypress/e2e/solid-login.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {v4 as uuid} from 'uuid'

describe('Solid Login', () => {
const timeout = 60000;
const timeout = 5000;
const e2eServer = 'http://localhost:3001';
let email: string, password: string, podName: string

Expand All @@ -21,11 +21,11 @@ describe('Solid Login', () => {
})

// log in page
cy.get('#register-link[href]', {timeout}).should('exist')
cy.contains("Sign up", {timeout}).should('exist');
cy.get('#register-link[href]').click()

// register new account page
cy.get('#confirmPassword', {timeout}).should('exist')
cy.contains("Register", { timeout }).should('exist')
cy.get('#email').type(email)
cy.get("#password").type(password)
cy.get('#confirmPassword').type(`${password}{enter}`)
Expand All @@ -39,12 +39,15 @@ describe('Solid Login', () => {
cy.get('#name', {timeout}).type(`${podName}{enter}`)

// user account page
cy.get('#response-account-link', {timeout}).should('exist')
cy.get('#response-account-link').click();
cy.contains('Your new Pod', {timeout}).should('exist')
cy.get('#response-account-link', {timeout}).click();
cy.get('#logout').click()

// back to frontpage
cy.get('#register-link', {timeout}).should('exist')
cy.window().then(($win) => {
$win.localStorage.clear()
})
cy.visit('/', {timeout})
});

Expand Down
1 change: 1 addition & 0 deletions cypress/support/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

// Import commands.js using ES2015 syntax:
import './commands'
import "bulma/css/bulma.min.css"

// Alternatively you can use CommonJS syntax:
// require('./commands')
Expand Down

0 comments on commit f7c685b

Please sign in to comment.