Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Cy release tests #4539

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cypress/e2e/pages/safeapps.pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ export function verifyNoAppsTextPresent() {
cy.contains(noAppsStr).should('exist')
}

export function pinApp(app, pin = true) {
export function pinApp(index, app, pin = true) {
const option = pin ? 'Pin' : 'Unpin'
cy.get(`[aria-label="${option} ${app}"]`).click()
cy.get(`[aria-label="${option} ${app}"]`).eq(index).click()
}

export function clickOnBookmarkedAppsTab() {
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/safe-apps/apps_list.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ describe('Safe Apps list tests', () => {

it('Verify apps can be pinned', () => {
safeapps.clearSearchAppInput()
safeapps.pinApp(safeapps.transactionBuilderStr)
safeapps.pinApp(1, safeapps.transactionBuilderStr)
safeapps.verifyPinnedAppCount(1)
})

it('Verify apps can be unpinned', () => {
safeapps.pinApp(safeapps.transactionBuilderStr)
safeapps.pinApp(safeapps.transactionBuilderStr, false)
safeapps.pinApp(1, safeapps.transactionBuilderStr)
safeapps.pinApp(0, safeapps.transactionBuilderStr, false)
safeapps.verifyPinnedAppCount(0)
})

Expand Down
Loading