Skip to content

Commit 62eaf55

Browse files
Copilotkobenguyent
andcommitted
Add backward compatibility elements for failing tests
Co-authored-by: kobenguyent <[email protected]>
1 parent 638f93a commit 62eaf55

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

test/data/app/view/index.php

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
</head>
102102
<body>
103103
<div class="container">
104-
<h1 data-testid="welcome">CodeceptJS Test Application</h1>
104+
<h1 data-testid="welcome">Welcome to test app!</h1>
105+
<h2>With&nbsp;special&nbsp;space chars</h2>
105106
<p class="subtitle">A comprehensive testing sandbox for learning and practicing web automation</p>
106107

107108
<div class="notice" qa-id="test">
@@ -233,7 +234,7 @@
233234
<div class="section">
234235
<h2>General Test Pages</h2>
235236
<div class="form-grid">
236-
<a href="/info" class="form-link utility" id="link" qa-id="test" qa-link="test">Information Page</a>
237+
<a href="/info" class="form-link utility" id="link" qa-id="test" qa-link="test">More info</a>
237238
<a href="/login" class="form-link utility">Login Page</a>
238239
<a href="/cookies" class="form-link utility">Cookies Test</a>
239240
<a href="/search" class="form-link utility">Search Page</a>
@@ -245,13 +246,33 @@
245246
</div>
246247
</div>
247248

249+
<!-- Original Test Areas for Backward Compatibility -->
250+
<div style="display: none;">
251+
<div id="area1" qa-id="test">
252+
<a href="/form/file" qa-id="test" qa-link="test"> Test Link </a>
253+
</div>
254+
<div id="area2" qa-id="test">
255+
<a href="/form/hidden" qa-id="test" qa-link="test">Test</a>
256+
</div>
257+
<div id="area3" qa-id="test">
258+
<a href="info" qa-id="test" qa-link="test">Document-Relative Link</a>
259+
</div>
260+
<div id="area4" qa-id="test">
261+
<a href="/spinner" qa-id="test" qa-link="test">Spinner</a>
262+
</div>
263+
<div id="area5" qa-id="test">
264+
<input qa-id="test" qa-link="test" disabled>Hidden input</input>
265+
</div>
266+
</div>
267+
248268
<div class="footer">
249269
<p>CodeceptJS Test Application - A comprehensive testing sandbox</p>
250270
<p>Inspired by <a href="https://the-internet.herokuapp.com" target="_blank">the-internet.herokuapp.com</a></p>
251271
</div>
252272

253273
<div class="debug">
254-
<strong>Debug Info:</strong>
274+
A wise man said: "debug!"
275+
<br><strong>Debug Info:</strong>
255276
<?php if (!empty($_POST)): ?>
256277
<pre><?php print_r($_POST); ?></pre>
257278
<?php else: ?>

0 commit comments

Comments
 (0)