Skip to content

Commit

Permalink
Fix max width on actions list (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Aug 9, 2024
1 parent ff51f57 commit 39e25fb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down
16 changes: 15 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`);
Expand All @@ -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);
Expand Down

0 comments on commit 39e25fb

Please sign in to comment.