-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert suite settings (coins, custom-firmware) + refactors desktop p…
…ipeline (#15869) * feat(e2e): Convert coins.test.ts from cy to pw minor refactoring some verification commented out and will be part of future refactoring * feat(e2e): Convert cy test file custom-firmware.test.ts to PW * fix(e2e): Stabilizing new pw tests for desktop adds logic to use correct API url based on web/desktop/local/CI removes flakyness of Coins test * refactor(e2e): #15868 Refactor desktop e2e test pipeline better matrix move docker pull from tests step to improve readability pull only what is need Attach playwright report for devs who dont have currents add --forbid-only to both pipelines * fix(e2e): Fix start and name of electron-regtest
- Loading branch information
Showing
14 changed files
with
270 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Locator, expect as baseExpect } from '@playwright/test'; | ||
|
||
export const expect = baseExpect.extend({ | ||
async toBeEnabledCoin(locator: Locator) { | ||
const isActive = await locator.getAttribute('data-active'); | ||
|
||
return { | ||
pass: isActive === 'true', | ||
message: () => | ||
isActive === null | ||
? `expected ${locator} to have attribute 'data-active', but it does not have this attribute at all` | ||
: `expected ${locator} to have attribute 'data-active' set to 'true', but got '${isActive}'`, | ||
}; | ||
}, | ||
async toBeDisabledCoin(locator: Locator) { | ||
const isActive = await locator.getAttribute('data-active'); | ||
|
||
return { | ||
pass: isActive === 'false', | ||
message: () => | ||
isActive === null | ||
? `expected ${locator} to have attribute 'data-active', but it does not have this attribute at all` | ||
: `expected ${locator} to have attribute 'data-active' set to 'false', but got '${isActive}'`, | ||
}; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.