Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Set up locked Komizo
- name: Set up locked komizo
uses: nicodes/komizo/setup@40086036977a5fc0119d6c4c1d5eb6ae3ab3b4b9
env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
persist-credentials: false
ref: main
timeout-minutes: 3
- name: Set up locked Komizo
- name: Set up locked komizo
uses: nicodes/komizo/setup@40086036977a5fc0119d6c4c1d5eb6ae3ab3b4b9
env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Set up locked Komizo
- name: Set up locked komizo
uses: nicodes/komizo/setup@40086036977a5fc0119d6c4c1d5eb6ae3ab3b4b9
env:
GH_TOKEN: ${{ github.token }}
Expand Down
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Repository instructions

# Product naming

Use `gd-playwright` in lowercase in user-facing text. Keep language identifiers, environment variables and protocol fields in their technical spelling. Usage documentation is generated from private `nicodes/docs`.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Generated from private documentation source. Do not edit directly. Source SHA256: 421e15566ff62e4dba3d5de615f15254aeda4c4bbd2655fa62cc49872b365d13 -->
<!-- Generated from private documentation source. Do not edit directly. Source SHA256: 1fa4ae5c5442c6cb10848f6bb30de8c543d791938b267f1f662de7838f4e5a6c -->

# gd-playwright

Expand All @@ -24,7 +24,7 @@ gdam install @aviorstudio/gd-playwright

### Manual

Copy `gd/addon/` into `res://addons/@aviorstudio_gd-playwright/` and enable `GD Playwright Client` in `Project Settings -> Plugins`.
Copy `gd/addon/` into `res://addons/@aviorstudio_gd-playwright/` and enable `gd-playwright` in `Project Settings -> Plugins`.

The plugin installs an autoload named `PlaywrightService`. You can also add `autoload.gd` manually as an autoload with that name.

Expand Down Expand Up @@ -72,8 +72,8 @@ PlaywrightService.scan_scene()

The editor also includes tool menu actions:

- `GD Playwright: Scan Scene For Metadata`
- `GD Playwright: Convert Metadata To Tags`
- `gd-playwright: Scan Scene For Metadata`
- `gd-playwright: Convert Metadata To Tags`

Use `PlaywrightEventEmitter` when a scene should author a named event in the Inspector:

Expand Down Expand Up @@ -296,4 +296,4 @@ See `LICENSE`.

## Repository development

Install the [Komizo release](https://github.com/nicodes/komizo#install) matching `komizo.lock`, then run `komizo check`. The locked addon recipe supplies Godot and templates; the project retains its Go, package and installed-editor checks, plus browser and web-export assertions. Use `komizo run test` for the focused test suite.
Install the [komizo release](https://github.com/nicodes/komizo#install) matching `komizo.lock`, then run `komizo check`. The locked addon recipe supplies Godot and templates; the project retains its Go, package and installed-editor checks, plus browser and web-export assertions. Use `komizo run test` for the focused test suite.
2 changes: 1 addition & 1 deletion gd/addon/plugin.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[plugin]
name="GD Playwright"
name="gd-playwright"
description="Godot web test bridge for Playwright — event emission and coordinate-free element map."
author="Avior Studio"
version="0.0.7"
Expand Down
12 changes: 6 additions & 6 deletions gd/addon/plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const PlaywrightTagNodeScript = preload("src/playwright_tag_node.gd")
const PlaywrightStatePublisherScript = preload("src/playwright_state_publisher.gd")
const PlaywrightEventEmitterScript = preload("src/playwright_event_emitter.gd")

const MENU_SCAN_METADATA := "GD Playwright: Scan Scene For Metadata"
const MENU_CONVERT_METADATA := "GD Playwright: Convert Metadata To Tags"
const MENU_SCAN_METADATA := "gd-playwright: Scan Scene For Metadata"
const MENU_CONVERT_METADATA := "gd-playwright: Convert Metadata To Tags"

func _enter_tree() -> void:
_register_project_settings()
Expand Down Expand Up @@ -102,22 +102,22 @@ func _editor_icon(preferred_name: String, fallback_name: String) -> Texture2D:
func _scan_scene_for_metadata() -> void:
var root: Node = _get_edited_scene_root()
if root == null:
push_warning("GD Playwright: open a scene before scanning metadata.")
push_warning("gd-playwright: open a scene before scanning metadata.")
return
var result: Dictionary = _scan_metadata_recursive(root)
print("GD Playwright: found %d playwright metadata entries and %d PlaywrightTag nodes." % [int(result.get("metadata", 0)), int(result.get("tags", 0))])
print("gd-playwright: found %d playwright metadata entries and %d PlaywrightTag nodes." % [int(result.get("metadata", 0)), int(result.get("tags", 0))])

func _convert_metadata_to_tags() -> void:
var root: Node = _get_edited_scene_root()
if root == null:
push_warning("GD Playwright: open a scene before converting metadata.")
push_warning("gd-playwright: open a scene before converting metadata.")
return
var converted: int = _convert_metadata_recursive(root, root)
if converted > 0:
var editor_interface: EditorInterface = get_editor_interface()
if editor_interface != null and editor_interface.has_method("mark_scene_as_unsaved"):
editor_interface.call("mark_scene_as_unsaved")
print("GD Playwright: converted %d playwright metadata entries to PlaywrightTag nodes and removed converted metadata." % converted)
print("gd-playwright: converted %d playwright metadata entries to PlaywrightTag nodes and removed converted metadata." % converted)

func _get_edited_scene_root() -> Node:
var editor_interface: EditorInterface = get_editor_interface()
Expand Down
2 changes: 1 addition & 1 deletion tools/package_gd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Build the GDAM asset from the repository's closed addon manifest."""
"""Build the gdam asset from the repository's closed addon manifest."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion tools/verify_gd_package.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Fail closed unless a GDAM ZIP contains exactly the declared regular files."""
"""Fail closed unless a gdam ZIP contains exactly the declared regular files."""

from __future__ import annotations

Expand Down