Skip to content

Commit

Permalink
fix: backwards test for prod versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 2, 2023
1 parent dcfbeea commit 1c2bbd0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 109 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: "Print OS"
run: echo ${{ matrix.os }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to retrieve git history

Expand Down
107 changes: 1 addition & 106 deletions packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/e2e-tests/src/tests/backwardsCompatibility.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ describe('Backwards Compatibility', () => {
let generalChannel: Channel
let secondChannel: Channel
let messagesToCompare: WebElement[]

let sidebar: Sidebar

const dataDir = `e2e_${(Math.random() * 10 ** 18).toString(36)}`
const communityName = 'testcommunity'
const ownerUsername = 'bob'
const ownerMessages = ['Hi', 'Hello', 'After guest leave app']
const loopMessages = 'abc'.split('')
const newChannelName = 'mid-night-club'

const isAlpha = process.env.FILE_NAME?.toString().includes('alpha')

beforeAll(async () => {
ownerAppOldVersion = new App({ dataDir, fileName: 'Quiet-1.2.0-copy.AppImage' })
})
Expand Down Expand Up @@ -147,7 +149,7 @@ describe('Backwards Compatibility', () => {
await ownerAppNewVersion.open()
})

if (process.env.TEST_MODE) {
if (process.env.TEST_MODE && isAlpha) {
it('Close debug modal', async () => {
const debugModal = new DebugModeModal(ownerAppNewVersion.driver)
await debugModal.close()
Expand Down

0 comments on commit 1c2bbd0

Please sign in to comment.