-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat(backend)/function-to-add-hidden-dapps
- Loading branch information
Showing
14 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
Binary file modified
BIN
+36.3 KB
(130%)
...y-page.spec.ts-snapshots/should-display-activity-page-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.21 KB
(100%)
...-snapshots/should-display-homepage-in-logged-in-state-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...spec.ts-snapshots/should-display-receive-tokens-modal-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file modified
BIN
+11.5 KB
(110%)
...pec.ts-snapshots/should-display-ETH-transactions-page-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
import type { Page } from '@playwright/test'; | ||
|
||
export class PromotionCarousel { | ||
#page: Page; | ||
|
||
constructor(page: Page) { | ||
this.#page = page; | ||
} | ||
|
||
public async navigateToSlide(slideNumber: number): Promise<void> { | ||
const navigation1Selector = `[data-tid="carousel-slide-navigation-${slideNumber}"]:visible`; | ||
await this.#page.click(navigation1Selector); | ||
} | ||
|
||
public async freezeCarousel(): Promise<void> { | ||
// Freeze the carousel by applying the first slide's transform style to all visible slides | ||
await this.#page.$$eval(`div[data-tid="carousel-slide"]:visible`, (elements) => { | ||
elements.forEach((el) => { | ||
const slideStyle = el.style.transform; | ||
el.style.transform = slideStyle; | ||
}); | ||
}); | ||
// Freeze the carousel navigation indicators by fixing their current width and background color styles | ||
await this.#page.$$eval(`[data-tid^="carousel-slide-navigation-"]:visible`, (elements) => { | ||
elements.forEach((el) => { | ||
const indicatorWidth = el.style.width; | ||
const indicatorBackgroundColor = el.style.backgroundColor; | ||
el.style.width = indicatorWidth; | ||
el.style.backgroundColor = indicatorBackgroundColor; | ||
}); | ||
}); | ||
} | ||
} |
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
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
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