From 39e25fb4209ac97bd4caa90249b5ed7017520d42 Mon Sep 17 00:00:00 2001 From: Katsute <58778985+Katsute@users.noreply.github.com> Date: Thu, 8 Aug 2024 20:55:01 -0400 Subject: [PATCH] Fix max width on actions list (#23) --- src/manifest.json | 2 +- src/style.css | 1 + test.js | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index d817935..55a2147 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,7 +4,7 @@ "name": "GitHub Center", "author": "Katsute", "description": "Center navigation on large viewports", - "version": "2.3", + "version": "2.4", "homepage_url": "https://github.com/KatsuteDev/GitHub-Center", "icons": { "16": "icon16.png", diff --git a/src/style.css b/src/style.css index fa978a7..e667ab1 100644 --- a/src/style.css +++ b/src/style.css @@ -5,6 +5,7 @@ react-app[app-name="repos-list"], #js-repo-pjax-container > *:not(projects-v2, .flash), body:not(.project-page) #repo-content-turbo-frame > div, +#repo-content-turbo-frame[src$="/actions"], #notification-shelf > div { width: 100%; diff --git a/test.js b/test.js index b59b8b3..5a0fa27 100644 --- a/test.js +++ b/test.js @@ -12,6 +12,7 @@ const selectors = [ `#repository-container-header > div`, `#repo-content-pjax-container > div`, // `body:not(.project-page) #repo-content-turbo-frame > div:not(#repo-content-pjax-container)`, // uses turbo test case + // `#repo-content-turbo-frame[src$="/actions"]`, // uses turbo test case // `#repository-container-header > div:last-child > div:last-child` // requires login // `#notification-shelf > div` // requires notification @@ -33,7 +34,7 @@ const selectors = [ } } - { + { // issues turbo test const s = `body:not(.project-page) #repo-content-turbo-frame > div:not(#repo-content-pjax-container)`; try{ // test for turbo frame await page.click(`#issues-tab`); @@ -45,6 +46,19 @@ const selectors = [ } } + { // actions turbo test + const s = `#repo-content-turbo-frame[src$="/actions"]`; + await page.goto("https://github.com/KatsuteDev/GitHub-Center/actions/runs/10311577473"); + try{ // test for turbo frame + await page.click(`#actions-tab`); + await page.waitForSelector(s, { timeout: 5000 }); + console.info('✅', s); + }catch(e){ + console.error('❌', s); + failed = true; + } + } + await browser.close(); failed && process.exit(1);