Skip to content

Commit 62c0d9e

Browse files
committed
SAK-51196 webcomponents Run tests on maven build
https://sakaiproject.atlassian.net/browse/SAK-51196 This change adds test scripts to the top level package.json that enable us to test all the components at once using Playwright, and test just the component which we are working on and its dependants. The full test runs the tests in parallel and takes around 30s to run. The test:dev script uses Lerna and will only test the staged files. The tool pom runs the full component Playwright tests.
1 parent a9785cd commit 62c0d9e

File tree

212 files changed

+2536
-3815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+2536
-3815
lines changed

Diff for: rubrics/api/src/main/bundle/rubrics.properties

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ existing student rubric scores to the default point value for selected ratings.
9090
public_rubrics_title=Publicly Shared Rubrics
9191
public_rubrics_info=Rubrics in this section were created by instructors and shared publicly with all users. You can share a rubric publicly by clicking on the "Globe" icon next to the rubric you would like to share. To use one of these rubrics in your course site, expand the "Public Rubrics" section and click on the "Copy" icon located in the "Actions" column.
9292
93-
# Rubrics in pdf
9493
export_title=Export {}
9594
export_rubric_title=Exported Rubric Title: {0}
9695
export_rubric_student=Student Name: {0}

Diff for: webcomponents/bundle/src/main/bundle/dashboard.properties

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ option3=Option 3
2323
select=Select
2424
layout=Layout
2525
layout_tooltip=Launch the layout picker
26+
layout1_alt=Example image of layout 1
27+
layout2_alt=Example image of layout 2
28+
layout3_alt=Example image of layout 3

Diff for: webcomponents/bundle/src/main/bundle/tasks.properties

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
filter_label=Filter your tasks
12
filter_current=All Current
23
filter_priority_5=Priority: 5
34
filter_priority_4=Priority: 4
@@ -10,6 +11,7 @@ priority_2_tooltip=Quite low (2) priority
1011
priority_3_tooltip=Medium (3) priority
1112
priority_4_tooltip=Quite high (4) priority
1213
priority_5_tooltip=High (5) priority
14+
sort_label=Sort your tasks
1315
sort_none=Sort
1416
sort_due_latest_first=Due: Latest First
1517
sort_due_earliest_first=Due: Earliest First

Diff for: webcomponents/tool/pom.xml

+9-35
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,6 @@
1313
<artifactId>webcomponents</artifactId>
1414
<packaging>war</packaging>
1515

16-
<dependencies>
17-
<!--dependency>
18-
<groupId>org.sakaiproject.kernel</groupId>
19-
<artifactId>sakai-kernel-api</artifactId>
20-
</dependency>
21-
<dependency>
22-
<groupId>org.sakaiproject.kernel</groupId>
23-
<artifactId>sakai-component-manager</artifactId>
24-
</dependency>
25-
<dependency>
26-
<groupId>org.sakaiproject.kernel</groupId>
27-
<artifactId>sakai-kernel-util</artifactId>
28-
</dependency>
29-
<dependency>
30-
<groupId>org.sakaiproject.entitybroker</groupId>
31-
<artifactId>entitybroker-api</artifactId>
32-
</dependency>
33-
<dependency>
34-
<groupId>org.sakaiproject.entitybroker</groupId>
35-
<artifactId>entitybroker-utils</artifactId>
36-
</dependency>
37-
<dependency>
38-
<groupId>org.springframework</groupId>
39-
<artifactId>spring-beans</artifactId>
40-
</dependency>
41-
<dependency>
42-
<groupId>javax.servlet</groupId>
43-
<artifactId>javax.servlet-api</artifactId>
44-
</dependency>
45-
<dependency>
46-
<groupId>org.apache.commons</groupId>
47-
<artifactId>commons-lang3</artifactId>
48-
</dependency-->
49-
</dependencies>
50-
5116
<build>
5217
<plugins>
5318
<plugin>
@@ -159,6 +124,15 @@
159124
<arguments>run analyze</arguments>
160125
</configuration>
161126
</execution>
127+
<execution>
128+
<id>test</id>
129+
<goals>
130+
<goal>npm</goal>
131+
</goals>
132+
<configuration>
133+
<arguments>run test</arguments>
134+
</configuration>
135+
</execution>
162136
<execution>
163137
<id>bundle</id>
164138
<goals>

0 commit comments

Comments
 (0)