Skip to content

Commit

Permalink
refactor: improve test descriptions and streamline test steps in 1-fl…
Browse files Browse the repository at this point in the history
…ow.test.ts
  • Loading branch information
KKA11010 committed Feb 23, 2025
1 parent 4436784 commit e4d527d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/e2e/1-flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { expect } from 'detox'
const noFeesMint = 'nofees.testnut.cashu.space'
const testAmount = '100'

describe('Add the testnut mint', () => {
describe('Test the happy path of the app', () => {
beforeAll(async () => {
await device.launchApp()
})
Expand Down Expand Up @@ -89,15 +89,13 @@ describe('Add the testnut mint', () => {

it('should mint the first cashu token', async () => {
await device.disableSynchronization()
const confirmBtn = element(by.id('Yes-modal-button'))
await confirmBtn.tap()
await element(by.id('Yes-modal-button')).tap()
const continueBtn = element(by.id('Continue-modal-button'))
await expect(continueBtn).toBeVisible()
await continueBtn.tap()
await expect(continueBtn).toBeVisible()
const input = element(by.id('mint-amount-input'))
await input.typeText(testAmount)
await continueBtn.tap()
await element(by.id('Continue-modal-button')).tap()
const qr = element(by.id('qr-code'))
await waitFor(qr).toBeVisible().withTimeout(10000)
await expect(qr).toBeVisible()
Expand Down

0 comments on commit e4d527d

Please sign in to comment.