Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automated_testing_kit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automated_testing_kit
Merge requests
!15
Page error test: fix visibility check, fix error text.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Page error test: fix visibility check, fix error text.
IL/fix-page-error
into
1.3.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
ilyaukin
requested to merge
IL/fix-page-error
into
1.3.x
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
1.3.x
version 1
08025763
6 months ago
1.3.x (base)
and
latest version
latest version
c139f47b
1 commit,
6 months ago
version 1
08025763
1 commit,
6 months ago
1 file
+
3
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
playwright/e2e/atk_page_error/atk_page_error.spec.js
+
3
−
8
Options
@@ -44,9 +44,7 @@ test.describe('Page error tests.', () => {
await
page
.
goto
(
baseUrl
+
badAnonymousUrl
);
// Should see the 403 message.
let
textContent
=
''
;
textContent
=
await
page
.
content
();
expect
(
textContent
).
toContain
(
'
403 error page
'
);
await
expect
(
page
.
getByText
(
'
403 Error Page
'
)).
toBeVisible
();
});
// Validate that 403 page appears.
@@ -65,15 +63,12 @@ test.describe('Page error tests.', () => {
await
page
.
goto
(
baseUrl
+
`
${
badAnonymousUrl
}
`
);
// Should see the 404 message.
let
textContent
=
''
;
textContent
=
await
page
.
content
();
expect
(
textContent
).
toContain
(
'
404 error page
'
);
await
expect
(
page
.
getByText
(
'
404 Error Page
'
)).
toBeVisible
();
await
atkCommands
.
logInViaForm
(
page
,
context
,
qaUserAccounts
.
authenticated
);
await
page
.
goto
(
baseUrl
+
badAuthenticatedUrl
);
// Should see the 404 message.
textContent
=
await
page
.
content
();
expect
(
textContent
).
toContain
(
'
404 error page
'
);
await
expect
(
page
.
getByText
(
'
404 Error Page
'
)).
toBeVisible
();
});
});
Loading