Skip to content

Commit

Permalink
chore(updates): updates
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 committed Mar 17, 2022
1 parent cbc9d08 commit f045d18
Show file tree
Hide file tree
Showing 11 changed files with 198 additions and 62 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
with:
working-directory: ./
install: false
start: yarn dev
command: npx cypress run --browser chrome --headless
wait-on: http://localhost:3000
wait-on-timeout: 300
working-directory: ./
install: false
start: yarn dev
command: npx cypress run --browser chrome --headless
wait-on: http://localhost:3000
wait-on-timeout: 300
- name: Artifacts
uses: actions/upload-artifact@v2
if: failure()
Expand Down
4 changes: 1 addition & 3 deletions components/ui/UpdateModal/UpdateModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
<vue-markdown :source="releaseData.body" :breaks="false"/>
</pre>
<div class="update-modal-spinner" v-if="isLoading">
<UiLoadersSpinner
spinning
/>
<UiLoadersSpinner spinning />
</div>

<TypographyText
Expand Down
7 changes: 6 additions & 1 deletion components/views/chat/enhancers/Enhancers.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
<InteractablesButton type="dark" size="small" text="Emoji">
<smile-icon size="1x" />
</InteractablesButton>
<InteractablesButton type="dark" size="small" text="Gifs" v-if="featureReadyToShow" >
<InteractablesButton
type="dark"
size="small"
text="Gifs"
v-if="featureReadyToShow"
>
<image-icon size="1x" />
</InteractablesButton>
</InteractablesButtonGroup>
Expand Down
46 changes: 23 additions & 23 deletions components/views/friends/add/Add.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@
send
/>
<span v-if="featureReadyToShow">
<UiSpacer :height="10" />
<TypographyHorizontalRuleText plaintext value="OR" />
<UiSpacer :height="10" />
<TypographyTitle :size="6" :text="$t('friends.add_via_qr')" />
<TypographyText :text="$t('friends.add_qrcode_description')" />
<UiSpacer :height="10" />
<div class="card">
<div class="card-content">
<div class="content">
<div class="columns">
<div class="column">
<TypographyText :text="$t('friends.scan_code')" />
<InteractablesButton
type="primary"
size="small"
:text="$t('friends.camera_scan')"
/>
</div>
<div class="column">
<TypographyText :text="$t('friends.friend_code')" />
<qrcode-vue :value="friendInviteUrl" :size="size" level="H" />
<UiSpacer :height="10" />
<TypographyHorizontalRuleText plaintext value="OR" />
<UiSpacer :height="10" />
<TypographyTitle :size="6" :text="$t('friends.add_via_qr')" />
<TypographyText :text="$t('friends.add_qrcode_description')" />
<UiSpacer :height="10" />
<div class="card">
<div class="card-content">
<div class="content">
<div class="columns">
<div class="column">
<TypographyText :text="$t('friends.scan_code')" />
<InteractablesButton
type="primary"
size="small"
:text="$t('friends.camera_scan')"
/>
</div>
<div class="column">
<TypographyText :text="$t('friends.friend_code')" />
<qrcode-vue :value="friendInviteUrl" :size="size" level="H" />
</div>
</div>
</div>
</div>
</div>
</div>
</span>
</span>
</div>
2 changes: 1 addition & 1 deletion libraries/SearchIndex/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SearchIndex from './index'
import * as index from "~/libraries/SearchIndex/index"
import * as index from '~/libraries/SearchIndex/index'

describe('index.default.serialize', () => {
let inst2: any
Expand Down
68 changes: 41 additions & 27 deletions libraries/Textile/BucketManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('BucketManager.default.progressParse', () => {
let inst37: any
let inst36: any
let inst39: any
let inst40: any
let inst33: any
let inst32: any
let inst31: any
Expand Down Expand Up @@ -114,32 +113,6 @@ describe('BucketManager.default.progressParse', () => {
inst36 = new Uint8Array([])
inst39 = new Uint8Array([])
DefaultBucketManager = BucketManager.default
inst40 = new DefaultBucketManager(
{
identity: {
sign: () => inst36,
public: { verify: () => true, bytes: inst37 },
},
client: inst38,
users: hub.Users.withUserAuth(
{
key: 'elio@example.com',
sig: '3d4e60b996ff9c5d5788e333a0cba6f238a22c6c0f94788870e1a9ecd482e152',
msg: 'Wait time out reached, while waiting for results',
token: undefined,
},
undefined,
),
wallet: {
mnemonic: 'YouarenotAllowed2Use',
keypair: web3.Keypair.generate(),
path: undefined,
address: '0.0.0.0',
},
},
{ sign: () => inst39, public: null },
'Becky Bednar',
)
inst33 = new hub.Client(undefined, true)
inst32 = new Uint8Array([])
inst31 = new Uint8Array([])
Expand Down Expand Up @@ -469,4 +442,45 @@ describe('BucketManager.default.getLinks', () => {
test('0', async () => {
await inst5.getLinks()
})

describe('BucketManager.default.fetchIndex', () => {
let inst4: any
let inst3: any
let inst2: any
let inst5: any

beforeEach(() => {
inst4 = new hub.Client(undefined, true)
inst3 = new Uint8Array([])
inst2 = new Uint8Array([])
inst5 = new BucketManager.default(
{
identity: {
sign: () => inst2,
public: { verify: () => false, bytes: inst3 },
},
client: inst4,
users: hub.Users.copyAuth(
index.GrpcAuthentication.withUserAuth(
() => ({ key: '', sig: '', msg: '', token: '' }),
undefined,
),
undefined,
),
wallet: {
mnemonic: undefined,
keypair: web3.Keypair.generate(),
path: undefined,
address: '',
},
},
undefined,
'',
)
})

test('0', async () => {
await inst5.fetchIndex()
})
})
})
85 changes: 85 additions & 0 deletions libraries/WebRTC/TracksManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,89 @@ describe('Mutate Tracks Manager', () => {
expect(result1).toBeUndefined()
expect(result2).toBeUndefined()
})

describe('TracksManager.TracksManager.removeTrack', () => {
let inst4: any
let inst3: any
let inst: any
let inst2: any

beforeEach(() => {
inst4 = new TracksManager.TracksManager()
inst3 = new TracksManager.TracksManager()
inst = new TracksManager.TracksManager()
inst2 = new TracksManager.TracksManager()
})

test('0', () => {
let result: any = inst2.removeTrack(
'03ea49f8-1d96-4cd0-b279-0684e3eec3a9',
)
expect(result).toMatchSnapshot()
})

test('1', () => {
let result: any = inst.removeTrack('7289708e-b17a-477c-8a77-9ab575c4b4d8')
expect(result).toMatchSnapshot()
})

test('2', () => {
let result: any = inst3.removeTrack(
'a85a8e6b-348b-4011-a1ec-1e78e9620782',
)
expect(result).toMatchSnapshot()
})

test('3', () => {
let result: any = inst4.removeTrack('')
expect(result).toMatchSnapshot()
})
})

describe('TracksManager.TracksManager.getTrack', () => {
let inst4: any
let inst3: any
let inst: any
let inst2: any

beforeEach(() => {
inst4 = new TracksManager.TracksManager()
inst3 = new TracksManager.TracksManager()
inst = new TracksManager.TracksManager()
inst2 = new TracksManager.TracksManager()
})

test('0', () => {
let result: any = inst2.getTrack('a85a8e6b-348b-4011-a1ec-1e78e9620782')
expect(result).toMatchSnapshot()
})

test('1', () => {
let result: any = inst.getTrack('7289708e-b17a-477c-8a77-9ab575c4b4d8')
expect(result).toMatchSnapshot()
})

test('2', () => {
let result: any = inst3.getTrack('03ea49f8-1d96-4cd0-b279-0684e3eec3a9')
expect(result).toMatchSnapshot()
})

test('3', () => {
let result: any = inst4.getTrack('')
expect(result).toMatchSnapshot()
})
})

describe('TracksManager.TracksManager.removeAllTracks', () => {
let inst2: any

beforeEach(() => {
inst2 = new TracksManager.TracksManager()
})

test('0', () => {
let result: any = inst2.removeAllTracks()
expect(result).toMatchSnapshot()
})
})
})
19 changes: 19 additions & 0 deletions libraries/WebRTC/__snapshots__/TracksManager.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Mutate Tracks Manager TracksManager.TracksManager.getTrack 0 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.getTrack 1 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.getTrack 2 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.getTrack 3 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.removeAllTracks 0 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.removeTrack 0 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.removeTrack 1 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.removeTrack 2 1`] = `undefined`;

exports[`Mutate Tracks Manager TracksManager.TracksManager.removeTrack 3 1`] = `undefined`;
10 changes: 10 additions & 0 deletions libraries/ui/Cursor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ describe('Cursor.default.getCurrentCursorPosition', () => {
)
expect(result).toMatchSnapshot()
})

describe('Cursor.default.setCurrentCursorPosition', () => {
test('0', () => {
let result: any = Cursor.default.setCurrentCursorPosition(
-Infinity,
document.querySelector('Foo bar', 'Foo bar', 'Foo bar'),
)
expect(result).toMatchSnapshot()
})
})
})
2 changes: 2 additions & 0 deletions libraries/ui/__snapshots__/Cursor.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Cursor.default.getCurrentCursorPosition 0 1`] = `-1`;

exports[`Cursor.default.getCurrentCursorPosition Cursor.default.setCurrentCursorPosition 0 1`] = `undefined`;
5 changes: 4 additions & 1 deletion pages/friends/list/FriendsList.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
<div v-else>
<UiLoadersFriend :count="5" />
</div>
<div v-if="Object.entries($mock.blocked).length && featureReadyToShow" class="padded_divider">
<div
v-if="Object.entries($mock.blocked).length && featureReadyToShow"
class="padded_divider"
>
<TypographyHorizontalRuleText
plaintext
:value="$t('friends.blocked')"
Expand Down

0 comments on commit f045d18

Please sign in to comment.