Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(e2e): improve login util stability #20223

Closed
wants to merge 13 commits into from

Conversation

innerdvations
Copy link
Contributor

@innerdvations innerdvations commented Apr 28, 2024

What does it do?

  • Adds a wait for network idle everywhere that we do a click action that causes network activity
  • changes the login utility to clear cookies and navigate to /admin -- this was because rarely there would be an issue where sessions got messed up and a successful login was not being detected and returning the user to the login page
  • updates playwright version
  • fixes some issues on tokens tests
  • use separate page objects for login tests
  • converts some files to typescript
  • converts some hardcoded strings to constants

Why is it needed?

For some reason, almost consistently near the end of a test run, the login will fail to load the page and gets an infinitely spinning loader instead. We really need to fix that, but until we can solve it, this will get our e2e CI working again since right now it's nearly impossible to get e2e to pass.

How to test it?

CI e2e tests should pass

Related issue(s)/PR(s)

Once I'm sure this passes consistently on the CI, I'll cherry pick this and do the same thing on develop

DX-1393

v4 version of this PR

Copy link

vercel bot commented Apr 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 2:54pm

Copy link
Contributor

github-actions bot commented Apr 28, 2024

Size Change: 0 B

Total Size: 2.58 MB

ℹ️ View Unchanged
Filename Size
examples/getstarted/build/_arrayIncludesWith-Z9Clh9dj.js 123 B
examples/getstarted/build/_baseEach-pwV6wgpv.js 223 B
examples/getstarted/build/_baseMap-HzYW6ql0.js 191 B
examples/getstarted/build/_id-HD4klC9S-qYD0qzrC.js 7.26 kB
examples/getstarted/build/AdminSeatInfo-ZrJlIt8M-JyKNKl-g.js 836 B
examples/getstarted/build/apiTokens-bNRitXGF-cpK16qwr.js 434 B
examples/getstarted/build/App-BrVjqg1Q-rChh-Rcn.js 1.34 kB
examples/getstarted/build/App-DehQFP3--s9wvx1O8.js 10.4 kB
examples/getstarted/build/ApplicationInfoPage-TImAEuc3-XptHLsyH.js 4.18 kB
examples/getstarted/build/ar-Bf9XlLLo-OfwQwX0w.js 53 B
examples/getstarted/build/ar-BYDB75EB-qyo4dS5h.js 1.23 kB
examples/getstarted/build/ar-CCEVvqGG-lTRwp9eA.js 4.76 kB
examples/getstarted/build/ar-CK8BRRXB-9MD2WfIK.js 1.34 kB
examples/getstarted/build/ar-ckp9T43y-oNkFXkcB.js 589 B
examples/getstarted/build/ar-gTQs8p7A-Gxk-HrP0.js 16.4 kB
examples/getstarted/build/AuthenticatedLayout-eMLYKMgW-92AzQ0je.js 20 kB
examples/getstarted/build/AuthResponse-wfOnX6GO-n8x-7GZ9.js 551 B
examples/getstarted/build/ca-5U32ON2v-ip0nC06S.js 3.79 kB
examples/getstarted/build/ca-A-U5stlG-yPHlIijm.js 9.95 kB
examples/getstarted/build/ca-B2_I-q1t-UXnG62Mm.js 2.4 kB
examples/getstarted/build/CardDragPreview-ikSG4M46-9TENfjev.js 571 B
examples/getstarted/build/ColorPickerInput-DZuK1NY_-droQRRde.js 4.21 kB
examples/getstarted/build/ComponentConfigurationPage-pebBJje9-61UHboFY.js 1.63 kB
examples/getstarted/build/ComponentIcon-BOFnK76n-qqsLbxBG.js 1.51 kB
examples/getstarted/build/constants-EoEtSd4i-bXZWlW2I.js 72 B
examples/getstarted/build/constants-wnw4TGwG-AJbNSIyH.js 723 B
examples/getstarted/build/ContentBox-DjmNTcxv-0mItx1Ox.js 449 B
examples/getstarted/build/CreateActionEE-Qdz4UDPf-bsoXCmkj.js 492 B
examples/getstarted/build/CreatePage-07P5-Zjt-pyzAzfCt.js 284 B
examples/getstarted/build/CreatePage-uTwt_c8J-WsQTadOP.js 1.87 kB
examples/getstarted/build/CreateView-87aPv9QV-tNiD6kaP.js 400 B
examples/getstarted/build/CreateView-T8hLqvog-9nczdDsb.js 360 B
examples/getstarted/build/cs-B0QZJTah-YvMT15k-.js 53 B
examples/getstarted/build/cs-BVigMk0l-Lf1PZDqx.js 1.37 kB
examples/getstarted/build/cs-ChL4LaFY-AibGLenG.js 2.8 kB
examples/getstarted/build/cs-ciLYCxgd-mD1uyk8s.js 656 B
examples/getstarted/build/cs-CM2aBUar-__Zi4ZE2.js 2.5 kB
examples/getstarted/build/cs-DMmE6LK7-IgJDOWX6.js 337 B
examples/getstarted/build/cs-iYqoHUVt-Um2SgMrC.js 3.75 kB
examples/getstarted/build/de-9eCAqqrB-BP4Zi2Vj.js 1.55 kB
examples/getstarted/build/de-A7mEKx6c-M6PiBv1Y.js 2.11 kB
examples/getstarted/build/de-B9kiAC-s-XPXQPciS.js 53 B
examples/getstarted/build/de-BKUdRFI4-U8ocsjNP.js 1.5 kB
examples/getstarted/build/de-C72KDNOl-SarrOqef.js 3.85 kB
examples/getstarted/build/de-DqkAUMvP-9SlTaJ9_.js 833 B
examples/getstarted/build/de-DsHQNzp2-EiAwusy4.js 4.11 kB
examples/getstarted/build/de-uZBjRd6a-BaOYkUdW.js 9.78 kB
examples/getstarted/build/dk-2qBjxt-P-3s8zjsTk.js 1.55 kB
examples/getstarted/build/dk-BbJCmDw6-KJg8dfYn.js 147 B
examples/getstarted/build/dk-BC7NAQR2-Pyjtpqwa.js 3.66 kB
examples/getstarted/build/dk-BPfkJb9q-1UzPKRoY.js 1.88 kB
examples/getstarted/build/dk-BQiTK50l-kZepplNR.js 1.83 kB
examples/getstarted/build/dk-D9TLFbt6-Ry01WSP8.js 128 B
examples/getstarted/build/dk-DgCq8mF--KZ1C6jVQ.js 979 B
examples/getstarted/build/dk-DqrbgSkv-jk-ymqLz.js 535 B
examples/getstarted/build/dk-nXAO32DE-esRIqlQ_.js 7.67 kB
examples/getstarted/build/EditConfigurationPage-C6PmjlFi-I8Gtastm.js 1.19 kB
examples/getstarted/build/EditPage-F3yH0Fy6-pmlp6fJl.js 1.83 kB
examples/getstarted/build/EditPage-lyFePXWl-LUy2ckMt.js 4.72 kB
examples/getstarted/build/EditPage-XSz7Wpt8-M5HF_8iM.js 2.15 kB
examples/getstarted/build/EditView-r0lx661I-hGQC1Sgz.js 2.08 kB
examples/getstarted/build/EditViewPage-8EcPtVDY-Lp5sSFiz.js 1.79 kB
examples/getstarted/build/EditViewPage-f5dHmqdT-U19QHgp-.js 5.12 kB
examples/getstarted/build/en-aU0dMEKb.js 74 B
examples/getstarted/build/en-B9Ur3VsE-RqhikxfP.js 1.51 kB
examples/getstarted/build/en-BbczxQBr-Le-K72mK.js 4.16 kB
examples/getstarted/build/en-BlDau3us-wSfLfbPo.js 376 B
examples/getstarted/build/en-CegwVP3M-mhAhYQiP.js 126 B
examples/getstarted/build/en-CnrTsjWS-Vd4RQECP.js 1.53 kB
examples/getstarted/build/en-D7rooMTs--3gKttLY.js 12.8 kB
examples/getstarted/build/en-D9ZrQAV6-HgxPedOP.js 299 B
examples/getstarted/build/en-DF4KtAAC-XDoFncvz.js 534 B
examples/getstarted/build/en-DfCC9sZn-gfrwi5iq.js 920 B
examples/getstarted/build/en-DOHtPf-2-wJl-9fqK.js 1.73 kB
examples/getstarted/build/en-MBPul9Su-UzJ64AY5.js 5.26 kB
examples/getstarted/build/en-oDx2Gnre-dPmFPYet.js 2.5 kB
examples/getstarted/build/en-YIQYYlvv-ZE5AyTsZ.js 136 B
examples/getstarted/build/es-BbsZ5Fh0-35l05Fao.js 153 B
examples/getstarted/build/es-BE_zx2_w-Rl6RxhGa.js 3.89 kB
examples/getstarted/build/es-BNo7eLLJ-K3o0j8Ht.js 598 B
examples/getstarted/build/es-CEiXVnsb-TpsXtt0T.js 1.01 kB
examples/getstarted/build/es-CeXiYflN-Yt-bEmx2.js 3.65 kB
examples/getstarted/build/es-CuWi2pOn-Q5GJG4zi.js 2.37 kB
examples/getstarted/build/es-DlmMVaBG-ChKsgIdq.js 1.61 kB
examples/getstarted/build/es-DNgOVMjD-pysvQggc.js 1.96 kB
examples/getstarted/build/es-DxC1UwjP-UMLmQgLp.js 139 B
examples/getstarted/build/es-i0dEHPPQ-eSz8_T_p.js 11.2 kB
examples/getstarted/build/es-kL6_JyxJ.js 74 B
examples/getstarted/build/eu-CdALomew-Qw8enYod.js 3.74 kB
examples/getstarted/build/eu-wFmYHERY-kH-47ER2.js 11.3 kB
examples/getstarted/build/EventsTable-2C605_qQ-jw4hExKA.js 416 B
examples/getstarted/build/FieldTypeIcon-CMlNO8PE-F0YsIstO.js 461 B
examples/getstarted/build/Form-CoUqyv_m-MI82YpTH.js 4.6 kB
examples/getstarted/build/fr-3S6ke71d-wbJqtNt3.js 1.65 kB
examples/getstarted/build/fr-BgqFw7G8-61f3X0M0.js 161 B
examples/getstarted/build/fr-BlX-v4UF-4rQupIi3.js 792 B
examples/getstarted/build/fr-BN6ndmWf-0NacE9S4.js 2.77 kB
examples/getstarted/build/fr-BRlwHIG8-fv5MyU5b.js 133 B
examples/getstarted/build/fr-CD9VFbPM-eYzM6vQp.js 3.82 kB
examples/getstarted/build/fr-DkgRugiU-WPdBcBLd.js 1.33 kB
examples/getstarted/build/fr-hkSxFuzl-J7zsssVp.js 53 B
examples/getstarted/build/fr-lU_OMJma-H5PlfKdG.js 1.55 kB
examples/getstarted/build/fr-OI7VyC_k-84QqR9Eb.js 9.75 kB
examples/getstarted/build/getEmptyImage-eu57SB6q.js 151 B
examples/getstarted/build/getTrad-DE9mW83F-JtfDwUIf.js 96 B
examples/getstarted/build/groupBy-7JeIxTiB.js 368 B
examples/getstarted/build/gu-CNpaMDpH-lGHViPzE.js 4.47 kB
examples/getstarted/build/gu-zSaMc-a6-uogbg-s6.js 9.55 kB
examples/getstarted/build/he-C9ZOXBB--aKNhCM8F.js 1.62 kB
examples/getstarted/build/he-YzAGShlQ-4eg3YSra.js 6.1 kB
examples/getstarted/build/hi-Dwvd04m3-v9uDPoIr.js 4.54 kB
examples/getstarted/build/hi-ZQ4t6UdY-BOET01jD.js 11.5 kB
examples/getstarted/build/History-BYuMnonw-3FKttOgA.js 5.62 kB
examples/getstarted/build/HomePage-4FySTCJU-_k5n1QDG.js 253 B
examples/getstarted/build/HomePage-ZF3T0k2r-m_xs9tBB.js 10.3 kB
examples/getstarted/build/hooks-E5u1mcgM-14VV8lEU.js 94 B
examples/getstarted/build/hu-CeYvaaO0-p9LY3nuM.js 3.99 kB
examples/getstarted/build/hu-O1FJoY8c-Pfx7-6mX.js 12.2 kB
examples/getstarted/build/id-BdEsvnaF-ya_EW1h9.js 1.41 kB
examples/getstarted/build/id-BtwA9WJT-FYt5dsaX.js 2.82 kB
examples/getstarted/build/id-CHtAzAUz-J7zsssVp.js 53 B
examples/getstarted/build/id-CPOl6_EU-BhFI5f3g.js 707 B
examples/getstarted/build/id-Lb_0kPQU-ya3XLzPL.js 5.25 kB
examples/getstarted/build/id-W1sKBFEw-4zKP7CcN.js 3.24 kB
examples/getstarted/build/index-2KBVaPYX.js 6.13 kB
examples/getstarted/build/index-7fPlAzj6-BUhqjF_P-_hRoWfii.js 53 kB
examples/getstarted/build/index-BaGvZIa--xr4ZcIy6.js 1.8 kB
examples/getstarted/build/index-Bbx-bUNJ-7q8y-Rf0.js 55.8 kB
examples/getstarted/build/index-BCxP3tqX-Brcou_ur.js 7.74 kB
examples/getstarted/build/index-bi6l4DNj-halZVDsV.js 5.43 kB
examples/getstarted/build/index-BSjlwVDy-ZeElPVVT.js 2.98 kB
examples/getstarted/build/index-C1jErREZ-tD3HW0OR.js 1.51 kB
examples/getstarted/build/index-CmvySXDT-Ckw7DSCa.js 1.92 kB
examples/getstarted/build/index-CtEheiAD-EqqpUnjo.js 1.93 kB
examples/getstarted/build/index-D1c2L5R4-Yg59b8-S.js 1.54 kB
examples/getstarted/build/index-hKqsGuL5.js 104 B
examples/getstarted/build/index-NPAF8xL6.js 571 B
examples/getstarted/build/index-TXQYZjEq.js 121 B
examples/getstarted/build/index-Z23sGUs_.js 584 B
examples/getstarted/build/index.html 592 B
examples/getstarted/build/Input-eYwefmqj-O1OTS4OG.css 369 B
examples/getstarted/build/Input-eYwefmqj-Zx0GX-CT.js 559 kB
examples/getstarted/build/InstalledPluginsPage-eOXi3oTN-PPQmt5DG.js 796 B
examples/getstarted/build/isNil-jef3wt6y.js 119 B
examples/getstarted/build/it-136monzD-tokYz7HG.js 5.56 kB
examples/getstarted/build/it-B-rv0E24-1AwxmJ3Y.js 1.49 kB
examples/getstarted/build/it-B7rmoZNx-DX1NUby4.js 1.48 kB
examples/getstarted/build/it-BrVPqaf1-aaOVPUDe.js 2.94 kB
examples/getstarted/build/it-C7z82V3g-J7zsssVp.js 53 B
examples/getstarted/build/it-D04lb2Wc-rZflbVRJ.js 3.38 kB
examples/getstarted/build/it-DWJI563z-0SVrzIJn.js 746 B
examples/getstarted/build/ja-0-FUC0T4-EFEq4X-l.js 8.82 kB
examples/getstarted/build/ja-BHLK_2_g-T3CoLbGy.js 1.14 kB
examples/getstarted/build/ja-C8K-VBPD-inHXSRgZ.js 1.4 kB
examples/getstarted/build/ja-CiekkoEN-nIra1cbN.js 693 B
examples/getstarted/build/ja-CtsUxOvk-fD48MWCR.js 3.98 kB
examples/getstarted/build/ja-DlaJTi_3-qT8z9vkY.js 1.76 kB
examples/getstarted/build/ko-Busb0wIY-84xWDr4V.js 2.07 kB
examples/getstarted/build/ko-C_MXyOM9-cGRR8wfP.js 152 B
examples/getstarted/build/ko-CFzSHayG-aWThbceX.js 1.17 kB
examples/getstarted/build/ko-CJBkZ375-dJRTYeQY.js 652 B
examples/getstarted/build/ko-DoNsXHXA-njDCEwti.js 4.08 kB
examples/getstarted/build/ko-H3Y8GpnD-sbyRlkig.js 8.35 kB
examples/getstarted/build/ko-HVQRlfUI-Su0LsWoh.js 3.75 kB
examples/getstarted/build/ko-qTjQ8IMw-j_MEDjAy.js 1.7 kB
examples/getstarted/build/ko-vJl9kPpn-SaGvSzEi.js 2.31 kB
examples/getstarted/build/Layout-CQlWOrR7-KKR4Qq0Q.js 1.4 kB
examples/getstarted/build/layout-D0xzgPL5-3SbFwFyZ.js 3.17 kB
examples/getstarted/build/Layout-mnn4_IJp-Oa0XK-Fo.js 1.56 kB
examples/getstarted/build/ListConfigurationPage-BzWY1Sb6-ioLUWBov.js 4.33 kB
examples/getstarted/build/ListPage-5g8MtUEB-TZekdGQO.js 2.92 kB
examples/getstarted/build/ListPage-AFDAiR9X-_QhRkAHw.js 1.9 kB
examples/getstarted/build/ListPage-eNkUD3v_-RMNooPre.js 3.41 kB
examples/getstarted/build/ListPage-Gj1OS6PX-9axTsBib.js 299 B
examples/getstarted/build/ListPage-kdjzZ2al-i_ElCV71.js 1.91 kB
examples/getstarted/build/ListView-FBh2WTHx-gtwwEEgP.js 1.39 kB
examples/getstarted/build/ListView-rQ_F80zx-MWwIcCWH.js 5.51 kB
examples/getstarted/build/ListView-uwPF62w6-ZclaqQbk.js 1.38 kB
examples/getstarted/build/ListViewPage-zPPYBHKH-PudWcn5e.js 5.79 kB
examples/getstarted/build/Login-FSNzATl0-DIQ59ftw.js 470 B
examples/getstarted/build/MagicLinkEE-czAdOuTH-l0d16xLE.js 432 B
examples/getstarted/build/MarketplacePage-kNQPkoZK-nxqtG-rB.js 13.9 kB
examples/getstarted/build/ml-BihZwQit-GeUmgNFs.js 4.77 kB
examples/getstarted/build/ml-NPdcpJoN-LRx2JWjv.js 11.9 kB
examples/getstarted/build/ModalForm-Gh2063zZ-1vxEmnad.js 244 B
examples/getstarted/build/ms-BtGFDB9t-5gRZye-c.js 3.24 kB
examples/getstarted/build/ms-ByvsQjRt-gubEhBMA.js 1.2 kB
examples/getstarted/build/ms-C1wNkEQw-YvMT15k-.js 53 B
examples/getstarted/build/ms-CqwG8v8l-RtqozBHF.js 1.33 kB
examples/getstarted/build/ms-CUgPFo4U-E73gbyvG.js 714 B
examples/getstarted/build/ms-m_WjyWx7-v2pCVL2s.js 2.67 kB
examples/getstarted/build/ms-v9c434YI-YMEL7TzC.js 3.97 kB
examples/getstarted/build/nl-5qO8Rpcy-be7tfgxk.js 1.25 kB
examples/getstarted/build/nl-B_7CHwVD-Deayapbr.js 598 B
examples/getstarted/build/nl-BaTAuelQ-bqDcN1J_.js 3.27 kB
examples/getstarted/build/nl-C79CwB4e-J7zsssVp.js 53 B
examples/getstarted/build/nl-D4R9gHx5-wahL0XP7.js 3.76 kB
examples/getstarted/build/nl-qHmOt3d1-ieWZHZDE.js 11.5 kB
examples/getstarted/build/no-XGZQN-Ji-Zi40WCOy.js 5.51 kB
examples/getstarted/build/NoContentTypePage-z02BtR-Z-LbKEsAtq.js 449 B
examples/getstarted/build/NoPermissionsPage-tdYq4Duf-DNIcITCy.js 229 B
examples/getstarted/build/objects-mKMAmfec-uGBHT-5x.js 386 B
examples/getstarted/build/Ornaments-h_LCCr5P-qIN631wE.js 1.49 kB
examples/getstarted/build/Permissions-aU1eesjP-3N9xKvoR.js 9.35 kB
examples/getstarted/build/pl-6hJT3Sda-0Y8k-ElF.js 147 B
examples/getstarted/build/pl-B67TSHqT-y4TXPzZq.js 1.7 kB
examples/getstarted/build/pl-BdIzifBE-ibb6xpXA.js 2.01 kB
examples/getstarted/build/pl-CbET57Jb-DjE0-zMU.js 149 B
examples/getstarted/build/pl-Cj8jChOO-NTdNMfc1.js 2.08 kB
examples/getstarted/build/pl-CP2Zgp01-KBgOzada.js 4.05 kB
examples/getstarted/build/pl-DwLr8sw9-uB4pwcJz.js 1.01 kB
examples/getstarted/build/pl-DXcJCevg-KaMlTtEc.js 576 B
examples/getstarted/build/pl-Id5YX-Pw-3MHBuaAm.js 10.1 kB
examples/getstarted/build/pl-sbx9mSt_-37e7S9b5.js 3.79 kB
examples/getstarted/build/PrivateRoute-zZ7p1pc9-JwJxp02A.js 250 B
examples/getstarted/build/ProfilePage-T2kC_KoM-SwdWW79o.js 2.26 kB
examples/getstarted/build/pt-BIO24ioG-j_n3oUw2.js 1.22 kB
examples/getstarted/build/pt-BR-0o0Gf-P8-n5JNyCLU.js 10.9 kB
examples/getstarted/build/pt-BR-B4LJHJIp--ley41Tw.js 1.52 kB
examples/getstarted/build/pt-BR-C71iDxnh-eSebcp0Q.js 3.79 kB
examples/getstarted/build/pt-BR-CCQGwXs0-p7Yl8DjA.js 4.07 kB
examples/getstarted/build/pt-BR-DjINUWGk-J7zsssVp.js 53 B
examples/getstarted/build/pt-BR-f0p23AQZ-jxR0Fcqo.js 1.13 kB
examples/getstarted/build/pt-BR-MVXc6V9P-ZJbjE7ae.js 608 B
examples/getstarted/build/pt-BsaFvS8--Z5hznfVx.js 1.89 kB
examples/getstarted/build/pt-C2N9fdeh-ZJbjE7ae.js 608 B
examples/getstarted/build/pt-CNOOM_7x-A2Z5oWUc.js 1.52 kB
examples/getstarted/build/pt-DEVCt2mt-oQDNFTyt.js 597 B
examples/getstarted/build/pt-DMeTMW2x-EakBvr5U.js 1.04 kB
examples/getstarted/build/pt-f52AXrxz-nrZ8Jedi.js 4.2 kB
examples/getstarted/build/purchase-review-workflows-DyffLpyz-LT3Ll4Mx.js 486 B
examples/getstarted/build/PurchaseAuditLogs-_1tVWtNF-T5s1s7CP.js 520 B
examples/getstarted/build/PurchaseContentReleases-Ex09YpKR-syXtKO-v.js 529 B
examples/getstarted/build/PurchaseSingleSignOn-VUU-U4wi-jlYkkP60.js 510 B
examples/getstarted/build/Relations-B2_Ii6eB-Uxf1xQ87.js 7.82 kB
examples/getstarted/build/relations-C9_3FUrX-2cvw0jp0.js 765 B
examples/getstarted/build/router-CY3mO2kE-S2ufcqRi.js 467 B
examples/getstarted/build/ru-aOnA-eym-maC6HF0B.js 610 B
examples/getstarted/build/ru-BddeNlU0-yN33KaiO.js 1.28 kB
examples/getstarted/build/ru-BE6A4Exp-_D83GCGH.js 5.76 kB
examples/getstarted/build/ru-BFz40YSA-8TSo8mRS.js 200 B
examples/getstarted/build/ru-C_7wBr9e-J7zsssVp.js 53 B
examples/getstarted/build/ru-DGSjru5m-iaednnF_.js 4.29 kB
examples/getstarted/build/ru-DnVqFddA-cpy1qczH.js 240 B
examples/getstarted/build/ru-DqglvSUC-hkQl0E6s.js 1.83 kB
examples/getstarted/build/ru-FpmG9SEf-oSX0ZDQG.js 15.9 kB
examples/getstarted/build/ru-hagMa57T-Tkhzn04j.js 2.15 kB
examples/getstarted/build/ru-VWy-IB7K-thb_Fbcx.js 2.51 kB
examples/getstarted/build/sa-Dag0k-Z8-S1jDb5LE.js 4.59 kB
examples/getstarted/build/sa-KUwV8aRB-IQHhYTUV.js 11.7 kB
examples/getstarted/build/selectors-AvywwQRm-PORXQ6yU.js 109 B
examples/getstarted/build/SelectRoles--ys30CdN-fLxUcn5U.js 1.02 kB
examples/getstarted/build/Settings-BDuq6QQN-LbuFZg_H.js 1.79 kB
examples/getstarted/build/Settings-CNeRvz0K-cqANsA2J.js 1.49 kB
examples/getstarted/build/SettingsPage-DNnWBqqo-P-_mnN7M.js 3.17 kB
examples/getstarted/build/SingleSignOnPage-Y-brfYQ1-wP4EMmqr.js 1.75 kB
examples/getstarted/build/sk-B_LIcepm-8Uj72yzG.js 1.28 kB
examples/getstarted/build/sk-BFg-R8qJ-46aV39mw.js 3.86 kB
examples/getstarted/build/sk-BmT4uZTG-ggHs-0Lm.js 745 B
examples/getstarted/build/sk-Dgpb3lnz-1cMG9Knz.js 2.47 kB
examples/getstarted/build/sk-DVK4HfSC-KHUfCq6U.js 3.59 kB
examples/getstarted/build/sk-g_1C955P-mPkBXBAO.js 8.64 kB
examples/getstarted/build/sk-i1gQKUBN-YvMT15k-.js 53 B
examples/getstarted/build/sortBy-axswGihA.js 688 B
examples/getstarted/build/SSOProviders-GcYDRAyn-ms8QOmcF.js 695 B
examples/getstarted/build/strapi-3oTbrnTz.js 897 kB
examples/getstarted/build/strapi-jibWoDgi.css 1.25 kB
examples/getstarted/build/sv-ABLKOokl-pL3ydTXh.js 1.92 kB
examples/getstarted/build/sv-BaFDND79-cuaLfeFA.js 318 B
examples/getstarted/build/sv-BGb12eW3-1iCRdl0z.js 4.09 kB
examples/getstarted/build/sv-CNYcKBn2-rWDZASZZ.js 148 B
examples/getstarted/build/sv-CUnfWGsh-bnDuQoPA.js 3.71 kB
examples/getstarted/build/sv-D_-KBtcw-avkm-3K_.js 1.02 kB
examples/getstarted/build/sv-DjL9wmwK-Fok_vvxs.js 140 B
examples/getstarted/build/sv-lzyY1dsz-5_1cEk_Q.js 11.2 kB
examples/getstarted/build/Table--He5qeQG-V5qYMPdz.js 1.49 kB
examples/getstarted/build/tail-vPxdDQ0N.js 244 B
examples/getstarted/build/th--u3VqsON-1fSFXv5j.js 4.07 kB
examples/getstarted/build/th-7LJ9Y8EL-ysaz4e2-.js 6.16 kB
examples/getstarted/build/th-BqbI8lIT-tUeqjoTS.js 3.27 kB
examples/getstarted/build/th-D-MxpWKr-J7zsssVp.js 53 B
examples/getstarted/build/th-DkuoSGii-D0PagSr4.js 970 B
examples/getstarted/build/th-DKyP7ueR-lnzlXrl4.js 1.84 kB
examples/getstarted/build/th-DRfzuiFf-FxAPZ0C9.js 1.82 kB
examples/getstarted/build/TokenTypeSelect-kgKThMAL-vU1wPF0h.js 123 kB
examples/getstarted/build/tr--GzWXE_A-9B7IB-8r.js 2.24 kB
examples/getstarted/build/tr-09v-DLMg-cNNBLaKK.js 10.7 kB
examples/getstarted/build/tr-BKL2AN-d-qg5Qg3zO.js 135 B
examples/getstarted/build/tr-BXu41MLY-ArVPthOz.js 604 B
examples/getstarted/build/tr-CgeK3wJM-dSRlw_D3.js 3.69 kB
examples/getstarted/build/tr-CHHW_hYI-5R6O9qSM.js 297 B
examples/getstarted/build/tr-DsUerr-c-YXWMRKvx.js 3.71 kB
examples/getstarted/build/tr-Dw_jmkG--B4IbSD24.js 1.59 kB
examples/getstarted/build/tr-H1PrR6RM-xxB3ji51.js 158 B
examples/getstarted/build/tr-l-xxK4Yk-g4Y7oIKB.js 1.02 kB
examples/getstarted/build/tr-qa1Q5UjC-vDV9wXQt.js 1.95 kB
examples/getstarted/build/tr-ucOQiEOl.js 83 B
examples/getstarted/build/transferTokens-ngan7vz6-teOdMmrb.js 440 B
examples/getstarted/build/uk-38IblmOr-QieAa7Gx.js 4.83 kB
examples/getstarted/build/uk-BmRqbeQc-sufYD23D.js 1.57 kB
examples/getstarted/build/uk-Bx5IlOKX-nrIhdC46.js 4.05 kB
examples/getstarted/build/uk-C_1qrLRM-J7zsssVp.js 53 B
examples/getstarted/build/uk-Cpmsxyku-yUi8a8Hj.js 950 B
examples/getstarted/build/uk-CR-zDhAY-4Cy7dUJl.js 3.2 kB
examples/getstarted/build/uk-DVMT2Piq-8NqHl1Qp.js 1.76 kB
examples/getstarted/build/urls-CbOsUOoW-dY8wXd6v.js 103 B
examples/getstarted/build/useAdminRoles-X4pwDHaW-WCQNvKhZ.js 241 B
examples/getstarted/build/UseCasePage-bfP-fDoW-6ubrKEtC.js 1.28 kB
examples/getstarted/build/useDragAndDrop-DdHgKsqq-h1EwViZ1.js 1.22 kB
examples/getstarted/build/useDragLayer-w2mOYY-c.js 179 B
examples/getstarted/build/useLicenseLimitNotification-T2LoOH4B-5pE4pPSC.js 756 B
examples/getstarted/build/useOnce-GJ2Ta2mZ-Ge18I3eZ.js 102 B
examples/getstarted/build/users-a4KTyEyc-9Fw_KRz4.js 289 B
examples/getstarted/build/useWebhooks-8VWSFqNg-hDEV1TxT.js 585 B
examples/getstarted/build/valid-7kMg9-pk.js 2.82 kB
examples/getstarted/build/validation-p2q0MWxi-k83J1lXU.js 429 B
examples/getstarted/build/vi-BfZkgFxI-J7zsssVp.js 53 B
examples/getstarted/build/vi-ClWGrFm9-e6dVFr5e.js 894 B
examples/getstarted/build/vi-DLBe31mD-Urhr1M2j.js 130 B
examples/getstarted/build/vi-DUXIk_fw-bmUBo1M4.js 2.33 kB
examples/getstarted/build/vi-HW-EdMea-CTrLdcKo.js 1.4 kB
examples/getstarted/build/vi-ryNZtXtk-EyNKiOcR.js 4.17 kB
examples/getstarted/build/zh-57YM4amO-p5mfH7xE.js 1.57 kB
examples/getstarted/build/zh-5hKkVPA4-KUd3x9W0.js 1.91 kB
examples/getstarted/build/zh-5kkOa7U5-mHAwOl5D.js 144 B
examples/getstarted/build/zh-BEh3jejH-oPfnHQD3.js 154 B
examples/getstarted/build/zh-BS-XJCSt-cMwuYEn5.js 637 B
examples/getstarted/build/zh-BWZspA60-EdNDaMV2.js 3.87 kB
examples/getstarted/build/zh-CsUDN13W-y_lzxhpN.js 4.2 kB
examples/getstarted/build/zh-DBH6uCXb-3nXFkBcm.js 331 B
examples/getstarted/build/zh-Glkg1L2g-f6qScRof.js 1.07 kB
examples/getstarted/build/zh-Hans-BHilK-yc-esCS3h8E.js 1.99 kB
examples/getstarted/build/zh-Hans-BLEEaLoN-1nykAmIu.js 389 B
examples/getstarted/build/zh-Hans-BPQcRIyH-1MvYxa2Z.js 16.2 kB
examples/getstarted/build/zh-Hans-Cc0M5PXr-iTSSvdn7.js 3.22 kB
examples/getstarted/build/zh-Hans-Cpmhg8uH-gDZbyPra.js 2.88 kB
examples/getstarted/build/zh-Hans-CRQss50D-zIEwBvmr.js 140 B
examples/getstarted/build/zh-Hans-Dyc-aR-h-2NfuE455.js 1.45 kB
examples/getstarted/build/zh-Hans-HlxDUeVA-5rwYKCvD.js 12.7 kB
examples/getstarted/build/zh-Hans-XLMwjASk-Z4E8vffy.js 875 B
examples/getstarted/build/zh-HOnih0is-nLF4rje-.js 2.43 kB
examples/getstarted/build/zh-WEteLuNm-eJaVPrr7.js 11.4 kB

compressed-size-action

@innerdvations innerdvations changed the title tests(e2e): login utils retries when page fails to load tests(e2e): improve login util stability Apr 28, 2024
page = await context.newPage();
await page.goto('/admin');
await expect(page).toHaveTitle('Strapi Admin');
const nonPersistentPage = await context.newPage();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-using the page object was rarely but sometimes causing a "page already closed" when attempting to navigate after

await expect(nameCell).toBeVisible();

// Locate the parent of nameCell and then search within it for the timestamp
const parentRow = nameCell.locator('xpath=..');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adds check present on transfer tokens that was missing from api tokens

@@ -96,8 +96,11 @@ test.describe('Sign Up', () => {
test('a user should be able to signup when the strapi instance starts fresh', async ({
page,
}) => {
await page.getByRole('button', { name: "Let's start" }).click();
await Promise.all([
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Promise.all with waitForLoadState and a click action works better to give clicks the time necessary to load the next page

Comment on lines +66 to +68
// Locate the parent of nameCell and then search within it for the timestamp
const parentRow = nameCell.locator('xpath=..');
await expect(parentRow).toContainText(/\d+ (second|minute)s? ago/);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we aren't clearing the db after each run anymore and have multiple tokens, we need to be more specific with what we're looking for

@innerdvations
Copy link
Contributor Author

So far this has run four times locally and twice on the CI with only the content history failing, so I think this helps a lot compared to before

@@ -41,9 +43,17 @@ const ALLOWED_CONTENT_TYPES = [
const ADMIN_EMAIL_ADDRESS = '[email protected]';
const ADMIN_PASSWORD = 'Testing123!';

const TITLE_LOGIN = 'Strapi Admin';
const TITLE_HOME = 'Homepage | Strapi';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so we stop having so many conflicts merging develop <-> v5/main

@@ -96,8 +96,11 @@ test.describe('Sign Up', () => {
test('a user should be able to signup when the strapi instance starts fresh', async ({
page,
}) => {
await page.getByRole('button', { name: "Let's start" }).click();
await Promise.all([
page.waitForLoadState('networkidle'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should make networkidle a const somewhere, it gets used quite a bit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a typed value for waitForLoadState I'll leave it for now, but I actually think the next time I'm in here messing with things I'm going to add a util for navigating + waiting so you can just call one line instead of 2+, nobody should have to remember to do this to write a stable test

@jhoward1994
Copy link
Contributor

I haven't seen that content releases FE failure before. Maybe we could skip the test here if it keep failing to get the E2E CI to run?

@innerdvations
Copy link
Contributor Author

I haven't seen that content releases FE failure before. Maybe we could skip the test here if it keep failing to get the E2E CI to run?

It just has to be run again sometimes, someone is working on that too and then we should have stable tests again everywhere!

@innerdvations
Copy link
Contributor Author

login.spec.ts just failed 😭 I'll take one more look at it, but at least it's the only e2e test that has failed in the last 10 runs or so.

@joshuaellis
Copy link
Member

login.spec.ts just failed 😭 I'll take one more look at it, but at least it's the only e2e test that has failed in the last 10 runs or so.

can you share a trace?

@innerdvations
Copy link
Contributor Author

login.spec.ts just failed 😭 I'll take one more look at it, but at least it's the only e2e test that has failed in the last 10 runs or so.

can you share a trace?

Just the one in CI: https://github.com/strapi/strapi/actions/runs/8880591655/job/24382167567?pr=20223

Most of the fixing I've done in there is the same flaky login in general, compounded by creating multiple browsers. Whatever is going wrong here is probably another case I missed where we're not waiting for something.

@joshuaellis
Copy link
Member

joshuaellis commented Apr 30, 2024

I've looked at your trace file, the issue is a bug in the FE which imo is high, i'm gonna open a JIRA ticket and attach the trace file, not sure how to reproduce it though...

EDIT: DX-1397

Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think there are any issues with the code apart from what i've highlighted which im concerned is not a pattern we want to start doing 👀

@@ -26,12 +26,19 @@ const createTransferToken = async (page, tokenName, duration, type) => {
};

test.describe('Transfer Tokens', () => {
test.beforeEach(async ({ page }) => {
let page: Page;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a pattern we want to promote? you effectively make the last test dependent on the previous because you're not starting with a "fresh" slate every time.

I'd be cautious about promoting this pattern as I don't think it's something we want to get into the habit of doing in the long term?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we aren't clearing the db after each run anymore and have multiple tokens, we need to be more specific with what we're looking for

My point exactly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately I think the bad practice is the core of the fix here. I will take a look and see if there's an alternative I can find, but otherwise I may just add a warning not to repeat that pattern in other tests.

@innerdvations
Copy link
Contributor Author

I think I can do a much more minimalist PR, this one had too many guesses in it, so I'll close this for now and come back with a cleaner version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: tooling Source is GitHub tooling/tests/ect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants