Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Oct 16, 2023
1 parent 4940bd1 commit 50f4f79
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file added packages/ui/cypress/downloads/downloads.html
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/ui/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ declare global {
getAuthRequests: () => Chainable<AuthRequests>

/**
* Connect an accounts to the extension
* Connect an accounts to the dApp
* @param accountAddresses
*/
connectAccounts: (accountAddresses?: string[]) => void
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/cypress/support/page-objects/topMenuItems.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const topMenuItems = {
homeButton: () => cy.get('[data-cy=button-navigate-home]'),
newMultisigButton: () => cy.get('[data-cy=button-new-multisig]'),
newMultisigButton: () => cy.get('[data-cy=button-navigate-new-multisig]'),
settingsButton: () => cy.get('[data-cy=button-navigate-settings]'),
overviewButton: () => cy.get('[data-cy=button-navigate-overview]'),
aboutButton: () => cy.get('[data-cy=button-navigate-about]'),
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/cypress/tests/login.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { landingPage } from '../support/page-objects/landingPage'
import { topMenuItems } from '../support/page-objects/topMenuItems'
import { clickOnConnect } from '../utils/clickOnConnect'
import { newMultisigPage } from '../support/page-objects/newMultisigPage'
import { accountDisplay } from '../support/page-objects/components/accountDisplay'

describe('Connect Account', () => {
beforeEach(() => {
Expand All @@ -25,7 +26,7 @@ describe('Connect Account', () => {
landingPage
.noAccountFoundError()
.should(
'have.text',
'contain.text',
'No account found. Please connect at least one in a wallet extension. More info at wiki.polkadot.network'
)
})
Expand All @@ -41,8 +42,7 @@ describe('Connect Account', () => {
// Click on the account address selector
newMultisigPage.addressSelector().click()

const accountLabels = cy.get('[data-cy="label-account-name"]')
accountLabels.each((el, index) => {
accountDisplay.nameLabel().each((el, index) => {
const expectedName = Object.values(injectedAccounts)[index].name
cy.wrap(el).should('have.text', expectedName)
})
Expand Down

0 comments on commit 50f4f79

Please sign in to comment.