36 Commits

Author SHA1 Message Date
Michael Shilman
ee7b69fead Tweak RNW CI 2024-11-17 23:10:46 +08:00
Valentin Palkovic
3b870cc568 Fix E2E tests 2024-10-25 12:35:46 +02:00
Yann Braga
99a36a5ef1 remove interactions addon internally before testing addon test 2024-10-15 14:15:07 +02:00
Yann Braga
959f975f03 change testing strategies
Move to test-storybooks as the e2e tests for UI module involve side effects and spawning vitest which takes time. Doing that in a sandbox is convoluted because there are too many stories
2024-09-27 13:33:04 +02:00
Jeppe Reinhold
bb3301cd61 add playwright eslint plugin, fix tests by rules 2024-09-03 21:49:36 +02:00
Norbert de Langen
61416c99b7 skip on firefox 2024-08-14 08:37:34 +02:00
Norbert de Langen
739c95de77 fix e2e 2024-08-13 17:01:45 +02:00
Norbert de Langen
35f7f2d2cd fix e2e 2024-08-13 16:12:22 +02:00
Norbert de Langen
513bb66bb9 apply sorting to code 2024-08-08 13:00:19 +02:00
Kasper Peulen
021c101faf Apply updated eslint rules 2024-01-15 13:33:41 +01:00
Kasper Peulen
bdf758d396 Ignore angular, as they have no implicit action errors 2024-01-02 16:24:19 +01:00
Kasper Peulen
7ed846e33c Ignore angular, as they have no implicit action errors 2024-01-02 15:49:54 +01:00
Kasper Peulen
829df7a0c5 Add e2e tests for unhandled errors 2023-12-29 17:01:48 +01:00
Kasper Peulen
c33b724004 Fix e2e tests 2023-10-31 14:41:49 +01:00
Yann Braga
fc259ed7e3 small improvements 2023-08-01 15:52:28 +02:00
Yann Braga
b47521d36a e2e: make sure we start every test with clean state 2023-08-01 14:34:21 +02:00
Valentin Palkovic
99047dd248 Fix flaky e2e tests 2023-07-27 15:37:38 +02:00
Norbert de Langen
86ef32577f
Merge branch 'next' into release/7.2 2023-07-10 14:59:49 +02:00
Norbert de Langen
1f967e21b2
improve 2e2 test consistency 2023-07-10 11:35:58 +02:00
Norbert de Langen
2f84ecc71a
Merge branch 'next' into release/7.2 2023-07-10 10:11:11 +02:00
Norbert de Langen
0c6df8f7c4
make e2e tests less inconsistent 2023-07-10 09:27:24 +02:00
Norbert de Langen
f524baa37b
fixes for e2e tests 2023-07-07 15:14:12 +02:00
Norbert de Langen
643678969c
Hopefully stabilize interactions e2e test
So… I discovered after a bunch of :computer-rage: ..
That the e2e test for interactions sometimes toggles the toolbar off.
When this happens it can’t click on the button to remount the story.
The toolbar disappears when playwright clicks on the addon tab, which appear like it refreshes storybook somehow, and then the toolbar disappears.
I cannot get playwright to do this locally, but I can see that something seems to be pressing t? Which toggles the toolbar.
What causes the refresh? what causes the toolbar to be toggle off? who knows?
I was trying to detect the presence of the toolbar to toggle back on, if needed,, and this is when things go weird.
Playwright tried to click the button, and can’t.. because it’s not visible.
So obviously I add a if statement, that if the button isn’t visible, it should do a procedure to ensure it will be, then try again.
Playwright tells me the button IS visible, but then when it tries to click says it isn’t. In addition using page.keyboard.press('t') doesn’t work to toggle the toolbar, very strange.
I even tried isWithinViewport()this suggests it’s in the viewport as well.
2023-07-07 14:07:08 +02:00
Norbert de Langen
0a1e4717a3
improve interactions: make use of the title being a FC and share state via useAddonState 2023-07-04 11:48:42 +02:00
Yann Braga
63df8704ce fix e2e test for interactions addon 2023-06-20 20:29:09 +02:00
Valentin Palkovic
4d07473e1c Update titles for addons, controls, and panel tabs to support JSX.Elements 2023-03-20 18:51:53 +01:00
Yann Braga
b9c82007e1 fix flakliness on interactions e2e test 2022-12-02 10:29:13 +01:00
Yann Braga
30642d2913 revamp tests 2022-11-30 19:26:18 +01:00
Yann Braga
9a1fce8222 add comments 2022-11-30 19:26:18 +01:00
Yann Braga
529e75d464 add extra assertion in e2e test 2022-11-30 19:26:18 +01:00
Yann Braga
bd9e2f5441 add e2e tests for the interactions debugger 2022-11-30 19:26:18 +01:00
Tom Coleman
22b01292b3 Fix addon docs test to use a docspage 2022-10-27 22:53:41 +11:00
Norbert de Langen
6be12c24d8
deal with the aftermath of upgrading eslint 2022-10-24 14:57:37 +02:00
Michael Shilman
88c46e7d32 Skip interactions e2e for lit-vite projects 2022-10-10 17:09:45 +08:00
Ian VanSchooten
25169ab01f Wait for page to finish loading in e2e tests 2022-08-24 22:06:49 -04:00
Michael Shilman
23badb7d8d E2E: Addon-interactions playwright test 2022-08-14 19:57:43 +08:00