Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Dec 29, 2023
1 parent ea05b49 commit f308ac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions e2e-tests/pages/modals/add-peer-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ export class AddPeerModal {
})
}

async assertiOSDownloadButtonHasCorrectLink() {
await test.step('Assert iOS download button has a correct link', async () => {
await expect(this.androidDownloadButton).toHaveAttribute('href', 'hhttps://apps.apple.com/us/app/netbird-p2p-vpn/id6469329339');
})
}

async assertDockerDownloadButtonHasCorrectLink() {
await test.step('Assert Docker download button has a correct link', async () => {
await expect(this.dockerDownloadButton).toHaveAttribute('href', 'https://docs.docker.com/engine/install/');
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/tests/peers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test('Test MacOS tab on a first access add peer modal / @bc', async () => {

test('Test iOS tab on a first access add peer modal', async () => {
await addPeerModal.openIOSTab();
await addPeerModal.assertAndroidDownloadButtonHasCorrectLink();
await addPeerModal.assertiOSDownloadButtonHasCorrectLink();
});

test('Test Android tab on a first access add peer modal', async () => {
Expand Down

0 comments on commit f308ac6

Please sign in to comment.