Skip to content

Commit

Permalink
refactor: deduplicate UserTestData interface
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Apr 11, 2024
1 parent 521c130 commit bd07e99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
9 changes: 3 additions & 6 deletions packages/e2e-tests/src/tests/joiningWithQSS.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ import {
RegisterUsernameModal,
} from '../selectors'
import { InvitationDataV2, InvitationDataVersion } from '@quiet/types'
interface UserTestData {
username: string
app: App
messages: string[]
}
import { UserTestData } from '../types'

jest.setTimeout(450000)

// Run QSS locally before this test
Expand All @@ -36,7 +33,7 @@ describe('User joining with storage server', () => {
users = {
owner: {
username: 'owner',
messages: ['Hi', 'Hello', 'After guest left the app'],
messages: ['Hi'],
app: new App(),
},
user1: {
Expand Down
7 changes: 1 addition & 6 deletions packages/e2e-tests/src/tests/multipleClients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ import {
Sidebar,
} from '../selectors'
import logger from '../logger'
import { UserTestData } from '../types'
const log = logger('ManyClients')

interface UserTestData {
username: string
app: App
messages: string[]
}

jest.setTimeout(1200000) // 20 minutes
describe('Multiple Clients', () => {
let generalChannelOwner: Channel
Expand Down
7 changes: 1 addition & 6 deletions packages/e2e-tests/src/tests/userProfile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ import logger from '../logger'
import { EXPECTED_IMG_SRC_GIF, EXPECTED_IMG_SRC_JPEG, EXPECTED_IMG_SRC_PNG } from '../profilePhoto.const'
import { sleep } from '../utils'
import { BACK_ARROW_DATA_TESTID } from '../enums'
import { UserTestData } from '../types'

const log = logger('userProfile')

interface UserTestData {
username: string
app: App
messages: string[]
}

jest.setTimeout(900000)

describe('User Profile Feature', () => {
Expand Down

0 comments on commit bd07e99

Please sign in to comment.