Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimnikonov1 committed Jan 24, 2024
1 parent 89fb9bf commit f40bbc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e-ci-cd/__tests__/goerli_eth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test.beforeEach(async ({metamask, zkAccount}) => {
await OperationsWithToken.CheckTransfer()
});

test.only('Withdraw ETH', async ({ OperationsWithToken }) => {
test('Withdraw ETH', async ({ OperationsWithToken }) => {
await OperationsWithToken.GoToWithdrawTab()
await OperationsWithToken.SelectGoerliNetwork()
await OperationsWithToken.SelectETHGoerli()
Expand Down Expand Up @@ -89,7 +89,7 @@ test.beforeEach(async ({metamask, zkAccount}) => {
});

test.describe('USDM pool', () => {
test.only('Deposit USDM', async ({ OperationsWithToken }) => {
test('Deposit USDM', async ({ OperationsWithToken }) => {
await OperationsWithToken.GoToDepositTab()
await OperationsWithToken.SelectGoerliNetwork()
await OperationsWithToken.SelectUSDMGoerli()
Expand All @@ -108,8 +108,8 @@ test.beforeEach(async ({metamask, zkAccount}) => {
await OperationsWithToken.button_Confirm()
await OperationsWithToken.CheckTransfer()
});
test.only('Withdraw USDM', async ({ OperationsWithToken }) => {

test('Withdraw USDM', async ({ OperationsWithToken }) => {
await OperationsWithToken.GoToWithdrawTab()
await OperationsWithToken.SelectGoerliNetwork()
await OperationsWithToken.SelectUSDMGoerli()
Expand Down
4 changes: 4 additions & 0 deletions e2e-ci-cd/pages/metamask/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export default class Metamask extends BasePage implements MetamaskMethods {
}

private async AgreeToTermsOfUse() {
await this.page.waitForTimeout(2000);
await this.page.locator('//div[@class="dropdown"]').click();
await this.page.waitForTimeout(2000);
await this.page.locator('//select[@class="dropdown__select"]').selectOption('English');
await this.page.locator('//input[@data-testid="onboarding-terms-checkbox"]').click();
// const getStartedBtn = this.page.locator(welcomePageElements.confirmButton);
// await getStartedBtn.click();
Expand Down

0 comments on commit f40bbc7

Please sign in to comment.