Skip to content

Commit 55e2dd1

Browse files
committed
fix spec ts
1 parent f904f61 commit 55e2dd1

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

otoroshi/javascript/tests/playwright/.auth/admin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"cookies": [
33
{
44
"name": "otoroshi-session",
5-
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiTFd3eGROcjFtaThmdzRvR2thUXBMS01yZ2JYUDAxVVU0SXAwZnlIYWk3b3h2c1o1b1lOVkoxekd4UDJ3MlRrUSJ9LCJleHAiOjE3NzkzNjE4NDUsIm5iZiI6MTc3OTEwMjY0NSwiaWF0IjoxNzc5MTAyNjQ1fQ.UrVT49xv0EjSXsGvwUoxKOFb9_SkCI4uDoA4oYzkdgk",
5+
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoicXR2M0Rpa2d5SXJNOVdTazByR3p5RzBIMDduNXF1bXBFRXpTYlR6SXpQSHZFOUdsc3dTWENZMVJWeVMzY0x1QyJ9LCJleHAiOjE3NzkzNjg0MzYsIm5iZiI6MTc3OTEwOTIzNiwiaWF0IjoxNzc5MTA5MjM2fQ.Vo9mEESlWXCWh2kh_odP_tuYPx349yldbEBquE4Fwag",
66
"domain": ".oto.tools",
77
"path": "/",
8-
"expires": 1779361845.454679,
8+
"expires": 1779368436.90265,
99
"httpOnly": true,
1010
"secure": false,
1111
"sameSite": "Lax"

otoroshi/javascript/tests/playwright/.auth/tester.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"cookies": [
33
{
44
"name": "otoroshi-session",
5-
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiNUlCdzRrTEpCR1ZVUWhINVNmSTRoQUs4dUdpSXFTV0hGeGpqNXJVSjNNVGpZSmUyRlgyVWhoSTZDaFZHY2cxNCJ9LCJleHAiOjE3NzkzNjE4NDQsIm5iZiI6MTc3OTEwMjY0NCwiaWF0IjoxNzc5MTAyNjQ0fQ.UGUGiGuBJwaHUH2c1LyltD0-9JHrQuaoYo8PH4GAZ1U",
5+
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiUzlQWVVHcnlINDZzNGJJeTdWc2tsUFdqcTBKVTF5ek5yZFp3SDhtclBNY2VOQzM5TlRyV0d2cUszVEl4RVlkUiJ9LCJleHAiOjE3NzkzNjg0MzYsIm5iZiI6MTc3OTEwOTIzNiwiaWF0IjoxNzc5MTA5MjM2fQ.S-fUoESh9jn7vCTbAMAQCLcN-vsSCeqiV-zIygvABfc",
66
"domain": ".oto.tools",
77
"path": "/",
8-
"expires": 1779361844.582716,
8+
"expires": 1779368436.071581,
99
"httpOnly": true,
1010
"secure": false,
1111
"sameSite": "Lax"

otoroshi/javascript/tests/spec/admin/api-lifecycle.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ test('publishes from staging, deployment payload is slim, draft is wiped', async
8787
const apiId = await createApiViaUI(page);
8888
trackedApis.add(apiId);
8989
try {
90+
// The dashboard auto-creates the draft asynchronously; the deploy 404s
91+
// without it. Wait for the draft before publishing.
92+
await expect.poll(async () => (await getDraftRaw(page, apiId)).status()).toBe(200);
93+
9094
// Publish via the header CTA (the entry point we expose to users now).
9195
await page.getByTestId('publish-this-version').click();
9296
// Confirm modal — "Publish API" header button is "Publish API", the modal

0 commit comments

Comments
 (0)