-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(playwright-ct): add to tests (#4876)
* test(playwright-ct): improve PT-input decorator test * test(playwright-ct): simplify assertion * test(playwright-ct): add missing await statement * test(playwright-ct): test if overlay is there first This makes it possible to call these helpers at any time. * test(playwright-ct): use standard playwright keyboard hotkey activation After resolving an issue with togglign marks recently, this can now be called the standard way without problems. * test(playwright-ct): fix issue with flaky webkit tests Refactor PT-iput overlay activation to reuse code, and get around an issue on Webkit/Linux where tests would randomly fail because of the field is not ready before we start to interact with it. By adding this: ```ts await page.waitForSelector(`[data-testid='${testId}']`)` ``` before starting to interact, the problems seems gone. * test(playwright-ct): remove debug statement * test(playwright-ct): simplify selectors Keeping it simple * test(playwright-ct): decrease expect timout from 20 > 5 * test(playwright-ct): adjust timouts * test(playwright-ct): ensure visibility of locator * test(playwright-ct): wait for toolbar to become ready * test(playwright-ct): add to Decorator test * test(playwright-ct): use toBeVisible asserts in PT-input placeholder tests * test(form/inputs): add testid to PT-input toolbar buttons * test(playwright-ct): fix issue with decorator test on webkit
- Loading branch information
1 parent
d91357f
commit 97e912d
Showing
8 changed files
with
109 additions
and
78 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
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
97e912d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
performance-studio – ./
performance-studio.sanity.build
performance-studio-git-next.sanity.build
97e912d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
test-studio – ./
test-studio-git-next.sanity.build
test-studio.sanity.build